fix _POSIX_SYNCHRONIZED_IO usage

it can be -1 for unsupported, or 0 for runtime detection (which we don't
do).
This commit is contained in:
Oswald Buddenhagen 2014-01-02 19:36:45 +01:00
parent 813b4942db
commit 6d2fd370a6
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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