From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:58905) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SPW2s-00052M-UV for qemu-devel@nongnu.org; Wed, 02 May 2012 05:40:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SPW2m-0001Ij-Lb for qemu-devel@nongnu.org; Wed, 02 May 2012 05:40:26 -0400 Received: from mout.web.de ([212.227.15.4]:56632) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SPW2m-0001IP-Bm for qemu-devel@nongnu.org; Wed, 02 May 2012 05:40:20 -0400 Message-ID: <4FA100EE.7040507@web.de> Date: Wed, 02 May 2012 11:39:58 +0200 From: =?UTF-8?B?QW5kcmVhcyBGw6RyYmVy?= MIME-Version: 1.0 References: <1335824128-16819-1-git-send-email-andreas.faerber@web.de> <1335824128-16819-2-git-send-email-andreas.faerber@web.de> <4FA0EA2B.2070805@redhat.com> In-Reply-To: <4FA0EA2B.2070805@redhat.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Subject: Re: [Qemu-devel] [PATCH 1/3] raw-posix: Do not use CONFIG_COCOA macro List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Kevin Wolf Cc: blauwirbel@gmail.com, Ben Leslie , qemu-devel@nongnu.org, Pavel Borzenkov Am 02.05.2012 10:02, schrieb Kevin Wolf: > Am 01.05.2012 00:15, schrieb Andreas Färber: >> From: Pavel Borzenkov >> >> Use __APPLE__ and __MACH__ macros instead of CONFIG_COCOA to detect Mac >> OS X host. The patch is based on Ben Leslie's patch: >> http://patchwork.ozlabs.org/patch/97859/ >> >> Signed-off-by: Ben Leslie >> Signed-off-by: Pavel Borzenkov >> Signed-off-by: Andreas Färber >> --- >> block/raw-posix.c | 8 ++++---- >> 1 files changed, 4 insertions(+), 4 deletions(-) >> >> diff --git a/block/raw-posix.c b/block/raw-posix.c >> index 2d1bc13..03fcfcc 100644 >> --- a/block/raw-posix.c >> +++ b/block/raw-posix.c >> @@ -29,7 +29,7 @@ >> #include "module.h" >> #include "block/raw-posix-aio.h" >> >> -#ifdef CONFIG_COCOA >> +#if defined(__APPLE__) && (__MACH__) > > Is there a 'defined' missing? Seems like it, I'll send you a fixup patch. Thanks for noticing, Andreas