From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:42338) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UKwKQ-00076o-1b for qemu-devel@nongnu.org; Wed, 27 Mar 2013 15:48:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UKwKO-0002Ve-Cj for qemu-devel@nongnu.org; Wed, 27 Mar 2013 15:48:09 -0400 Received: from mail.mc.net ([209.172.128.24]:40471) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1UKwKO-0002VM-6A for qemu-devel@nongnu.org; Wed, 27 Mar 2013 15:48:08 -0400 Message-ID: <51534CF1.5080506@mc.net> Date: Wed, 27 Mar 2013 14:48:01 -0500 From: Bob Breuer MIME-Version: 1.0 References: <933633532.16187989.1364409257248.JavaMail.root@redhat.com> In-Reply-To: <933633532.16187989.1364409257248.JavaMail.root@redhat.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Subject: Re: [Qemu-devel] [patch]Make GTK build on OS X List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Paolo Bonzini , "C.W. Betts" On 3/27/2013 1:34 PM, Paolo Bonzini wrote: > > > ----- Messaggio originale ----- >> Da: "C.W. Betts" >> A: "Paolo Bonzini" >> Cc: qemu-devel@nongnu.org >> Inviato: Mercoledì, 27 marzo 2013 19:05:46 >> Oggetto: Re: [patch]Make GTK build on OS X >> >> >> On Mar 27, 2013, at 2:34 AM, Paolo Bonzini >> wrote: >> >>> Il 26/03/2013 23:16, C.W. Betts ha scritto: >>>> This patch makes the GTK UI build on OS X by including the right >>>> headers. >>>> >>>> >>>> >>>> From b5cc84343f479d4870961c82fc7b384637e9616c Mon Sep 17 00:00:00 >>>> 2001 >>>> From: "C.W. Betts" >>>> Date: Sun, 24 Mar 2013 11:24:05 -0600 >>>> Subject: [PATCH 1/3] Make the GTK UI build on OS X. >>>> >>>> --- >>>> ui/gtk.c | 5 +++++ >>>> 1 file changed, 5 insertions(+) >>>> >>>> diff --git a/ui/gtk.c b/ui/gtk.c >>>> index 305940d..e2948d7 100644 >>>> --- a/ui/gtk.c >>>> +++ b/ui/gtk.c >>>> @@ -54,7 +54,12 @@ >>>> #include >>>> #include >>>> #include >>>> +#ifdef __APPLE__ >>>> +#include >>>> +#include >>>> +#else >>>> #include >>>> +#endif >>>> #include >>>> >>>> #include "ui/console.h" >>>> >>> >>> termios.h can be included unconditionally. For util.h and pty.h, >>> there >>> is already similar code in qemu-char.c: >> the pty.h include was already there > > Yes, I know. The point is that there's already an idiom to choose > between pty.h/util.h/libutil.h, and we should not introduce another. Note that mingw has none of those headers, so double-check the _WIN32 conditionals. > > Paolo > >>> >>> #if defined(__GLIBC__) >>> #include >>> #elif defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || >>> defined(__DragonFly__) >>> #include >>> #else >>> #include >>> #endif >>> >>> Please move it to include/qemu-common.h instead so that there is no >>> duplication. >> The next patch will do this. Thank you for the feedback. >>> >>> Paolo >>> >> >> > > > >