Patchwork ui/gtk.c: Fix *BSD build of Gtk+ UI

login
register
mail settings
Submitter Brad
Date May 21, 2013, 4:14 p.m.
Message ID <20130521161324.GA29977@rox.home.comstyle.com>
Download mbox | patch
Permalink /patch/245339/
State New
Headers show

Comments

Brad - May 21, 2013, 4:14 p.m.
Fix the build of the Gtk+ UI on *BSD systems.

Signed-off-by: Brad Smith <brad@comstyle.com>
Laszlo Ersek - May 21, 2013, 4:46 p.m.
On 05/21/13 18:14, Brad Smith wrote:
> Fix the build of the Gtk+ UI on *BSD systems.
> 
> Signed-off-by: Brad Smith <brad@comstyle.com>
> 
> diff --git a/include/qemu-common.h b/include/qemu-common.h
> index af769f5..c944bb7 100644
> --- a/include/qemu-common.h
> +++ b/include/qemu-common.h
> @@ -45,6 +45,7 @@
>  #if defined(__GLIBC__)
>  # include <pty.h>
>  #elif defined CONFIG_BSD
> +# include <termios.h>
>  # if defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__DragonFly__)
>  #  include <libutil.h>
>  # else
> 

Can't see how it could hurt.

Reviewed-by: Laszlo Ersek <lersek@redhat.com>
Anthony Liguori - May 22, 2013, 10:58 p.m.
Applied.  Thanks.

Regards,

Anthony Liguori

Patch

diff --git a/include/qemu-common.h b/include/qemu-common.h
index af769f5..c944bb7 100644
--- a/include/qemu-common.h
+++ b/include/qemu-common.h
@@ -45,6 +45,7 @@ 
 #if defined(__GLIBC__)
 # include <pty.h>
 #elif defined CONFIG_BSD
+# include <termios.h>
 # if defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__DragonFly__)
 #  include <libutil.h>
 # else