qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] improved patch from block-raw-posix.c
@ 2009-06-21 23:55 G 3
  2009-06-22 16:12 ` Anthony Liguori
  2009-06-22 21:13 ` Christoph Hellwig
  0 siblings, 2 replies; 3+ messages in thread
From: G 3 @ 2009-06-21 23:55 UTC (permalink / raw)
  To: qemu-devel

This patch is an improvement over a previous patch for the file 
block-raw-posix.c. This time the code checks to see if O_FSYNC is 
defined before defining O_SYNC as O_FSYNC. If it isn't defined, then it 
defines O_SYNC as 0.

signed-off-by: ProgrammingKid <programmingkidx@gmail.com>
--- /Users/misbah/Desktop/block-raw-posix-original.c	Wed May 20 
16:46:58 2009
+++ /Users/misbah/Desktop/block-raw-posix.c	Sun Jun 21 19:48:15 2009
@@ -73,6 +73,16 @@
  #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
+	#ifdef O_FSYNC
+		#define O_SYNC O_FSYNC
+	#else
+		#define O_SYNC 0
+	#endif
+#endif
+
  /* OS X does not have O_DSYNC */
  #ifndef O_DSYNC
  #define O_DSYNC O_SYNC

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

end of thread, other threads:[~2009-06-22 21:14 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-06-21 23:55 [Qemu-devel] [PATCH] improved patch from block-raw-posix.c G 3
2009-06-22 16:12 ` Anthony Liguori
2009-06-22 21:13 ` Christoph Hellwig

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