All of lore.kernel.org
 help / color / mirror / Atom feed
From: Paolo Bonzini <pbonzini@redhat.com>
To: "C.W. Betts" <computers57@hotmail.com>
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [patch]Make GTK build on OS X
Date: Wed, 27 Mar 2013 09:34:35 +0100	[thread overview]
Message-ID: <5152AF1B.3000901@redhat.com> (raw)
In-Reply-To: <BLU0-SMTP3802FB63970D3F90FBEC132B9D00@phx.gbl>

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" <computers57@hotmail.com>
> 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 <sys/socket.h>
>  #include <sys/un.h>
>  #include <sys/wait.h>
> +#ifdef __APPLE__
> +#include <termios.h>
> +#include <util.h>
> +#else
>  #include <pty.h>
> +#endif
>  #include <math.h>
>  
>  #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:

#if defined(__GLIBC__)
#include <pty.h>
#elif defined(__FreeBSD__) || defined(__FreeBSD_kernel__) ||
defined(__DragonFly__)
#include <libutil.h>
#else
#include <util.h>
#endif

Please move it to include/qemu-common.h instead so that there is no
duplication.

Paolo

  reply	other threads:[~2013-03-27  8:34 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-03-26 22:16 [Qemu-devel] [patch]Make GTK build on OS X C.W. Betts
2013-03-27  8:34 ` Paolo Bonzini [this message]
2013-03-27 18:05   ` C.W. Betts
2013-03-27 18:34     ` Paolo Bonzini
2013-03-27 19:48       ` Bob Breuer
2013-03-28  6:21         ` Paolo Bonzini

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5152AF1B.3000901@redhat.com \
    --to=pbonzini@redhat.com \
    --cc=computers57@hotmail.com \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.