All of lore.kernel.org
 help / color / mirror / Atom feed
From: G 3 <programmingkidx@gmail.com>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] [PATCH] improved patch from block-raw-posix.c
Date: Sun, 21 Jun 2009 19:55:43 -0400	[thread overview]
Message-ID: <d097564c372451488331f3a8514b8da1@gmail.com> (raw)

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

             reply	other threads:[~2009-06-21 23:55 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-06-21 23:55 G 3 [this message]
2009-06-22 16:12 ` [Qemu-devel] [PATCH] improved patch from block-raw-posix.c Anthony Liguori
2009-06-22 21:13 ` Christoph Hellwig

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=d097564c372451488331f3a8514b8da1@gmail.com \
    --to=programmingkidx@gmail.com \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.