diff options
Diffstat (limited to 'block-raw-posix.c')
-rw-r--r-- | block-raw-posix.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/block-raw-posix.c b/block-raw-posix.c index 4c04dbf8da..74a9f52071 100644 --- a/block-raw-posix.c +++ b/block-raw-posix.c @@ -73,6 +73,11 @@ #define DEBUG_BLOCK_PRINT(formatCstr, args...) #endif +/* OS X does not have O_DSYNC */ +#ifndef O_DSYNC +#define O_SYNC +#endif + /* Approximate O_DIRECT with O_DSYNC if O_DIRECT isn't available */ #ifndef O_DIRECT #define O_DIRECT O_DSYNC |