[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [5486] Define O_DSYNC as O_SYNC if necessary.
From: |
Anthony Liguori |
Subject: |
[Qemu-devel] [5486] Define O_DSYNC as O_SYNC if necessary. |
Date: |
Tue, 14 Oct 2008 18:00:39 +0000 |
Revision: 5486
http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=5486
Author: aliguori
Date: 2008-10-14 18:00:38 +0000 (Tue, 14 Oct 2008)
Log Message:
-----------
Define O_DSYNC as O_SYNC if necessary.
O_DSYNC isn't available on OS X.
Signed-off-by: Anthony Liguori <address@hidden>
Modified Paths:
--------------
trunk/block-raw-posix.c
Modified: trunk/block-raw-posix.c
===================================================================
--- trunk/block-raw-posix.c 2008-10-14 14:42:54 UTC (rev 5485)
+++ trunk/block-raw-posix.c 2008-10-14 18:00:38 UTC (rev 5486)
@@ -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
- [Qemu-devel] [5486] Define O_DSYNC as O_SYNC if necessary.,
Anthony Liguori <=