commit 6d2fd370a60de5cacaf8e60c117efe66c245dc16
Author: Oswald Buddenhagen <[email protected]>
Date: Thu Jan 2 19:36:45 2014 +0100
fix _POSIX_SYNCHRONIZED_IO usage
it can be -1 for unsupported, or 0 for runtime detection (which we don't
do).
src/drv_maildir.c | 2 +-
src/sync.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/drv_maildir.c b/src/drv_maildir.c
index b62848e..46b4cb1 100644
--- a/src/drv_maildir.c
+++ b/src/drv_maildir.c
@@ -43,7 +43,7 @@
# define LEGACY_FLOCK 1
#endif
-#ifndef _POSIX_SYNCHRONIZED_IO
+#if !defined(_POSIX_SYNCHRONIZED_IO) || _POSIX_SYNCHRONIZED_IO <= 0
# define fdatasync fsync
#endif
diff --git a/src/sync.c b/src/sync.c
index 687911d..851b2db 100644
--- a/src/sync.c
+++ b/src/sync.c
@@ -35,7 +35,7 @@
#include <errno.h>
#include <sys/stat.h>
-#ifndef _POSIX_SYNCHRONIZED_IO
+#if !defined(_POSIX_SYNCHRONIZED_IO) || _POSIX_SYNCHRONIZED_IO <= 0
# define fdatasync fsync
#endif
------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT
organizations don't have a clear picture of how application performance
affects their revenue. With AppDynamics, you get 100% visibility into your
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
_______________________________________________
isync-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/isync-devel