From 6d2fd370a60de5cacaf8e60c117efe66c245dc16 Mon Sep 17 00:00:00 2001 From: Oswald Buddenhagen Date: Thu, 2 Jan 2014 19:36:45 +0100 Subject: [PATCH] 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 #include -#ifndef _POSIX_SYNCHRONIZED_IO +#if !defined(_POSIX_SYNCHRONIZED_IO) || _POSIX_SYNCHRONIZED_IO <= 0 # define fdatasync fsync #endif