|
From: | G 3 |
Subject: | [Qemu-devel] [PATCH] Fixes a bug that tries to use the unimplemented function fdatasync on Mac OS X. |
Date: | Sat, 19 Sep 2009 20:58:14 -0400 |
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 <address@hidden> --- 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 |
[Prev in Thread] | Current Thread | [Next in Thread] |