Define O_DSYNC as O_SYNC if necessary.
authoraliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162>
Tue, 14 Oct 2008 18:00:38 +0000 (18:00 +0000)
committeraliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162>
Tue, 14 Oct 2008 18:00:38 +0000 (18:00 +0000)
O_DSYNC isn't available on OS X.

Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5486 c046a42c-6fe2-441c-8c8c-71466251a162

block-raw-posix.c

index 4c04dbf8dac3cafd558ad355119584c9ccca138d..74a9f5207119399f2cae1c9758f3b55f253bd27c 100644 (file)
 #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