Browse Source

fix _POSIX_SYNCHRONIZED_IO usage

it can be -1 for unsupported, or 0 for runtime detection (which we don't
do).
1.1
Oswald Buddenhagen 11 years ago
parent
commit
6d2fd370a6
  1. 2
      src/drv_maildir.c
  2. 2
      src/sync.c

2
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

2
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

Loading…
Cancel
Save