aboutsummaryrefslogtreecommitdiff
path: root/block-raw-posix.c
diff options
context:
space:
mode:
Diffstat (limited to 'block-raw-posix.c')
-rw-r--r--block-raw-posix.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/block-raw-posix.c b/block-raw-posix.c
index 74a9f52071..c06e38d12e 100644
--- a/block-raw-posix.c
+++ b/block-raw-posix.c
@@ -75,7 +75,7 @@
/* OS X does not have O_DSYNC */
#ifndef O_DSYNC
-#define O_SYNC
+#define O_DSYNC O_SYNC
#endif
/* Approximate O_DIRECT with O_DSYNC if O_DIRECT isn't available */