From: Robert Spalek Date: Fri, 27 Oct 2006 03:08:09 +0000 (-0700) Subject: fdatasync is not supported on Darwin ===> work-around X-Git-Tag: holmes-import~507^2~36 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=aba69716e835e6f2398e82ddcba4b14c04495c02;p=libucw.git fdatasync is not supported on Darwin ===> work-around --- diff --git a/lib/lfs.h b/lib/lfs.h index 274b72a7..3896c0e6 100644 --- a/lib/lfs.h +++ b/lib/lfs.h @@ -41,6 +41,12 @@ typedef struct stat sh_stat_t; #endif /* !CONFIG_LFS */ +#if defined(_POSIX_SYNCHRONIZED_IO) && (_POSIX_SYNCHRONIZED_IO > 0) +#define sh_fdatasync fdatasync +#else +#define sh_fdatasync fsync +#endif + #define HAVE_PREAD static inline sh_off_t