qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [5486] Define O_DSYNC as O_SYNC if necessary.
@ 2008-10-14 18:00 Anthony Liguori
  2008-10-14 18:12 ` Robert Riebisch
  0 siblings, 1 reply; 6+ messages in thread
From: Anthony Liguori @ 2008-10-14 18:00 UTC (permalink / raw)
  To: qemu-devel

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 <aliguori@us.ibm.com>

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2008-10-14 18:53 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-14 18:00 [Qemu-devel] [5486] Define O_DSYNC as O_SYNC if necessary Anthony Liguori
2008-10-14 18:12 ` Robert Riebisch
2008-10-14 18:15   ` Anthony Liguori
2008-10-14 18:21   ` Laurent Vivier
2008-10-14 18:25     ` Laurent Vivier
2008-10-14 18:53       ` Anthony Liguori

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).