qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] Fixes a bug that tries to use the unimplemented function fdatasync on Mac OS X.
@ 2009-09-20  0:58 G 3
  2009-09-30 19:16 ` Anthony Liguori
  0 siblings, 1 reply; 9+ messages in thread
From: G 3 @ 2009-09-20  0:58 UTC (permalink / raw)
  To: qemu-devel

[-- Attachment #1: Type: text/plain, Size: 622 bytes --]

This patch fixes a problem in the file cutils.c that prevents qemu  
from being built on Mac OS X. This patch makes sure fsync is used  
instead.

Signed-off-by: John Arbuckle <programmingkidx@gmail.com>

---
  cutils.c |    2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/cutils.c b/cutils.c
index 7a22346..84eabf2 100644
--- a/cutils.c
+++ b/cutils.c
@@ -124,7 +124,7 @@ int qemu_fls(int i)
   */
  int qemu_fdatasync(int fd)
  {
-#ifdef _POSIX_SYNCHRONIZED_IO
+#if ( defined(_POSIX_SYNCHRONIZED_IO) && !defined(__APPLE__) )
      return fdatasync(fd);
  #else
      return fsync(fd);
-- 
1.6.4.2


[-- Attachment #2: Type: text/html, Size: 4225 bytes --]

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

end of thread, other threads:[~2009-12-10 16:49 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-09-20  0:58 [Qemu-devel] [PATCH] Fixes a bug that tries to use the unimplemented function fdatasync on Mac OS X G 3
2009-09-30 19:16 ` Anthony Liguori
2009-10-01 15:30   ` G 3
2009-10-01 16:13     ` Blue Swirl
2009-12-08 14:35       ` Pierre Riteau
2009-12-08 18:35         ` Blue Swirl
2009-12-08 21:02           ` Pierre Riteau
2009-12-08 23:01           ` Alexander Graf
2009-12-10 16:49             ` Pierre Riteau

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