Received: from eggs.gnu.org ([140.186.70.92]:36293) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QRumU-0005P8-Ta for qemu-devel@nongnu.org; Wed, 01 Jun 2011 19:24:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QRumS-0003HP-VZ for qemu-devel@nongnu.org; Wed, 01 Jun 2011 19:24:54 -0400 Received: from fmmailgate02.web.de ([217.72.192.227]:35177) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QRumS-0003H8-Dw for qemu-devel@nongnu.org; Wed, 01 Jun 2011 19:24:52 -0400 Message-Id: From: =?ISO-8859-1?Q?Andreas_F=E4rber?= In-Reply-To: <3F686C7F-9D03-4E3A-9C53-AE2ED1C59659@suse.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed; delsp=yes Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Apple Message framework v936) Date: Thu, 2 Jun 2011 01:24:49 +0200 References: <1306591272-25851-1-git-send-email-andreas.faerber@web.de> <79947640-DE72-4DCF-93A8-EDB0657632C2@suse.de> <3F686C7F-9D03-4E3A-9C53-AE2ED1C59659@suse.de> Sender: andreas.faerber@web.de Subject: Re: [Qemu-devel] [PATCH] Fix libfdt warnings on Darwin List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Alexander Graf Cc: QEMU Developers , Hollis Blanchard Am 28.05.2011 um 16:20 schrieb Alexander Graf: > On 28.05.2011, at 16:16, Andreas F=E4rber wrote: > >> Am 28.05.2011 um 16:03 schrieb Alexander Graf: >> >>> On 28.05.2011, at 16:01, Andreas F=E4rber wrote: >>> >>>> diff --git a/libfdt_env.h b/libfdt_env.h >>>> index ee0419f..90d7f3b 100644 >>>> --- a/libfdt_env.h >>>> +++ b/libfdt_env.h >>>> @@ -19,13 +19,9 @@ >>>> #ifndef _LIBFDT_ENV_H >>>> #define _LIBFDT_ENV_H >>>> >>>> -#include >>>> -#include >>>> -#include >>>> -#include >>>> -#include >>>> +#include "bswap.h" >>>> >>>> -#if __BYTE_ORDER =3D=3D __BIG_ENDIAN >>>> +#ifdef HOST_WORDS_BIGENDIAN >>> >>> Hrm. Who defines HOST_WORDS_BIGENDIAN? Shouldn't you explicitly =20 >>> include that header file? >> >> bswap.h includes config-host.h, why duplicate that. Let's not make =20= >> Stefan more work. :) > > Ah, then everything's fine :). Please make sure to test it on a =20 > little endian (Linux) box as well :) > > Acked-by: Alexander Graf Thanks, applied to cocoa branch. Andreas=