From: G 3 Date: Wed, 1 Jul 2009 17:28:32 +0000 (-0400) Subject: Substitute O_DSYNC with O_SYNC or O_FSYNC when needed. X-Git-Tag: v0.10.6~10 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=960b646371d9c91bbb908fc97ae277a384777136;p=thirdparty%2Fqemu.git Substitute O_DSYNC with O_SYNC or O_FSYNC when needed. Signed-off-by: John Arbuckle Signed-off-by: Anthony Liguori --- diff --git a/block-raw-posix.c b/block-raw-posix.c index af3d468750e..49dd528d266 100644 --- a/block-raw-posix.c +++ b/block-raw-posix.c @@ -75,7 +75,11 @@ /* OS X does not have O_DSYNC */ #ifndef O_DSYNC +#ifdef O_SYNC #define O_DSYNC O_SYNC +#elif defined(O_FSYNC) +#define O_DSYNC O_FSYNC +#endif #endif /* Approximate O_DIRECT with O_DSYNC if O_DIRECT isn't available */