aboutsummaryrefslogtreecommitdiff
path: root/block-raw-posix.c
diff options
context:
space:
mode:
authoraliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162>2008-10-14 18:14:47 +0000
committeraliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162>2008-10-14 18:14:47 +0000
commit7ab064d2b512b13655a0ad9ef2a5f782d798d112 (patch)
tree461c2c4e401ff0f0744365a1374b8d8566c2d9e8 /block-raw-posix.c
parentf646557804b8da6386e0de5b97bb680ee52e236f (diff)
Fix previous commit (spotted by Robert Riebisch).
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5487 c046a42c-6fe2-441c-8c8c-71466251a162
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 */