Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MpAl6-0008Np-6Y for qemu-devel@nongnu.org; Sat, 19 Sep 2009 20:58:32 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MpAl1-0008Ag-JN for qemu-devel@nongnu.org; Sat, 19 Sep 2009 20:58:31 -0400 Received: from [199.232.76.173] (port=33511 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MpAl1-0008AS-Dj for qemu-devel@nongnu.org; Sat, 19 Sep 2009 20:58:27 -0400 Received: from mail-yx0-f173.google.com ([209.85.210.173]:45513) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MpAl0-0000mj-W8 for qemu-devel@nongnu.org; Sat, 19 Sep 2009 20:58:27 -0400 Received: by yxe3 with SMTP id 3so2383592yxe.4 for ; Sat, 19 Sep 2009 17:58:25 -0700 (PDT) Mime-Version: 1.0 (Apple Message framework v753.1) Message-Id: Content-Type: multipart/alternative; boundary=Apple-Mail-1-223187757 From: G 3 Date: Sat, 19 Sep 2009 20:58:14 -0400 Subject: [Qemu-devel] [PATCH] Fixes a bug that tries to use the unimplemented function fdatasync on Mac OS X. List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org --Apple-Mail-1-223187757 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed 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 --- 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 --Apple-Mail-1-223187757 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=US-ASCII 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

= --Apple-Mail-1-223187757--