|
From: | Anthony Liguori |
Subject: | Re: [Qemu-devel] [PATCH] Fixes a bug that tries to use the unimplemented function fdatasync on Mac OS X. |
Date: | Wed, 30 Sep 2009 14:16:39 -0500 |
User-agent: | Thunderbird 2.0.0.23 (X11/20090825) |
G 3 wrote:
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.
What is this against? It doesn't apply to git.
Signed-off-by: John Arbuckle <address@hidden <mailto: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] |