qemu-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-commits] [COMMIT 1c27a8b] Substitute O_DSYNC with O_SYNC or O_FSYN


From: Anthony Liguori
Subject: [Qemu-commits] [COMMIT 1c27a8b] Substitute O_DSYNC with O_SYNC or O_FSYNC whenneeded.
Date: Fri, 10 Jul 2009 19:16:41 -0000

From: G 3 <address@hidden>

Signed-off-by: John Arbuckle <address@hidden>
Signed-off-by: Anthony Liguori <address@hidden>

diff --git a/block/raw-posix.c b/block/raw-posix.c
index 985bf69..fa4f83e 100644
--- a/block/raw-posix.c
+++ b/block/raw-posix.c
@@ -81,7 +81,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 */




reply via email to

[Prev in Thread] Current Thread [Next in Thread]