]> git.ipfire.org Git - thirdparty/rrdtool-1.x.git/commitdiff
Remove fdatasync, fsync from rrd_config_bottom.h 845/head
authorWolfgang Stöggl <c72578@yahoo.de>
Tue, 28 Nov 2017 08:18:55 +0000 (09:18 +0100)
committerWolfgang Stöggl <c72578@yahoo.de>
Tue, 28 Nov 2017 08:18:55 +0000 (09:18 +0100)
- fdatasync() has been removed since RRDtool v1.4.0.
  See commit: fc968dd
- fixes "Can't compile with without fsync and fdatasync" error
  on systems, where HAVE_FDATASYNC or HAVE_FSYNC are not defined

src/rrd_config_bottom.h

index 5d93f2b1b0e9db7f9a35addd0ab64a7ce7f10bc3..184eb58a41a6d56f0bb1b6be1d20815981468f66 100644 (file)
@@ -230,13 +230,5 @@ char *strchr (), *strrchr ();
 #error "Can't compile without isinf function"
 #endif
 
-#if (! defined(HAVE_FDATASYNC) && defined(HAVE_FSYNC))
-#define fdatasync fsync
-#endif
-
-#if (!defined(HAVE_FDATASYNC) && !defined(HAVE_FSYNC))
-#error "Can't compile with without fsync and fdatasync"
-#endif
-
 #endif /* RRD_CONFIG_BOTTOM_H */