From patchwork Sun Sep 20 00:58:14 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Programmingkid X-Patchwork-Id: 33954 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 67E7DB7B68 for ; Sun, 20 Sep 2009 10:59:12 +1000 (EST) Received: from localhost ([127.0.0.1]:39827 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MpAlh-0008Qj-2m for incoming@patchwork.ozlabs.org; Sat, 19 Sep 2009 20:59:09 -0400 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) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:mime-version:to:message-id :content-type:from:subject:date:x-mailer; bh=0Fy5R75KWaMeX9D1vfFrY3p2ZWYqPVlKkOY9dpFu42g=; b=uZAqokoOP5qE56SHzzN6Gr1MTj7S8ruAfAvWtGswhUdF1mog7hzHR78nH8pGqNJKfg rQGeQR+kJYYYBHZaniR1on2cWBdXModDCF2Z8nBlHCkLXRJbFCcj5jjXJFHmuuiVKHid i36eAHyRYk5xXqPG0IyrGDiJ9BaDovyfn7Aw0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:to:message-id:content-type:from:subject:date:x-mailer; b=j65JD/tWIILc2RGG2OCjONFSurSEyKwZ8kny1MvniGxTS804upGBx9Dtuwb7RGNLMB TwF37l8646cVk7t/169DcC60p+8lcg2Io9WIu5cXHcG5f9a40KsToSvFhGSJ4XnZ3MR/ smvf7wP3P6fE+UmU3z5sSmDBPN09K2CwhAyZw= Received: by 10.100.74.13 with SMTP id w13mr3064546ana.168.1253408305653; Sat, 19 Sep 2009 17:58:25 -0700 (PDT) Received: from ?192.168.0.3? (adsl-76-226-89-63.dsl.sfldmi.sbcglobal.net [76.226.89.63]) by mx.google.com with ESMTPS id d24sm877453and.8.2009.09.19.17.58.24 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sat, 19 Sep 2009 17:58:24 -0700 (PDT) Mime-Version: 1.0 (Apple Message framework v753.1) To: qemu-devel@nongnu.org Message-Id: From: G 3 Date: Sat, 19 Sep 2009 20:58:14 -0400 X-Mailer: Apple Mail (2.753.1) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Subject: [Qemu-devel] [PATCH] Fixes a bug that tries to use the unimplemented function fdatasync on Mac OS X. X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org 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);