From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Mt4fR-0001O3-VD for qemu-devel@nongnu.org; Wed, 30 Sep 2009 15:16:49 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Mt4fN-0001Lw-57 for qemu-devel@nongnu.org; Wed, 30 Sep 2009 15:16:49 -0400 Received: from [199.232.76.173] (port=47462 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mt4fM-0001Lr-Uw for qemu-devel@nongnu.org; Wed, 30 Sep 2009 15:16:45 -0400 Received: from mail-fx0-f214.google.com ([209.85.220.214]:53908) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Mt4fM-0007OA-LI for qemu-devel@nongnu.org; Wed, 30 Sep 2009 15:16:44 -0400 Received: by fxm10 with SMTP id 10so2107951fxm.8 for ; Wed, 30 Sep 2009 12:16:43 -0700 (PDT) Message-ID: <4AC3AE97.3000400@codemonkey.ws> Date: Wed, 30 Sep 2009 14:16:39 -0500 From: Anthony Liguori MIME-Version: 1.0 Subject: Re: [Qemu-devel] [PATCH] Fixes a bug that tries to use the unimplemented function fdatasync on Mac OS X. References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: G 3 Cc: qemu-devel@nongnu.org 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 > > > --- > 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 >