qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] replace O_SYNC with O_FSYNC
@ 2009-06-20  2:22 m a
  2009-06-20 14:31 ` Anthony Liguori
  2009-06-20 19:16 ` Christoph Hellwig
  0 siblings, 2 replies; 19+ messages in thread
From: m a @ 2009-06-20  2:22 UTC (permalink / raw)
  To: qemu-devel

This patch replaces O_SYNC with O_FSYNC. These two flags do the same 
thing, but only O_FSYNC is available in Mac OS 10.3 and under. It only 
replaces O_SYNC if it doesn't exist. This patch allows the file 
block-raw-posix.c to compile on Mac OS 10.3. This is my first time 
submitting a patch, so there might have been a few mistakes made.

--- block-raw-posix.c	Wed May 20 16:46:58 2009
+++ block-raw-posix (updated).c	Fri Jun 19 22:01:07 2009
@@ -73,6 +73,12 @@
  #define DEBUG_BLOCK_PRINT(formatCstr, args...)
  #endif

+// O_SYNC isn't available on Mac OS 10.3 and under
+// O_SYNC and O_FSYNC do the same thing
+#ifndef O_SYNC
+#define O_SYNC O_FSYNC
+#endif
+
  /* OS X does not have O_DSYNC */
  #ifndef O_DSYNC
  #define O_DSYNC O_SYNC

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

end of thread, other threads:[~2009-06-24 19:08 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-06-20  2:22 [Qemu-devel] [PATCH] replace O_SYNC with O_FSYNC m a
2009-06-20 14:31 ` Anthony Liguori
2009-06-20 18:59   ` Avi Kivity
2009-06-20 19:03     ` François Revol
2009-06-20 19:15       ` Avi Kivity
2009-06-20 23:25       ` Jamie Lokier
2009-06-21 10:01         ` Andreas Färber
2009-06-24 18:25           ` Jamie Lokier
2009-06-24 18:54             ` Andreas Färber
2009-06-24 18:59               ` Filip Navara
2009-06-24 19:08                 ` Jamie Lokier
2009-06-20 20:46     ` Anthony Liguori
2009-06-21  9:01       ` Avi Kivity
2009-06-20 19:16 ` Christoph Hellwig
2009-06-20 23:30   ` Jamie Lokier
2009-06-20 23:37     ` Anthony Liguori
2009-06-21  0:41       ` G 3
2009-06-24 18:27         ` Jamie Lokier
2009-06-21  0:46     ` G 3

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).