broadway: Only use gio-unix on G_OS_UNIX

This commit is contained in:
Tarnyko 2013-06-13 18:15:10 +02:00 committed by Alexander Larsson
parent 050702494b
commit d4dacc596f
3 changed files with 7 additions and 1 deletions

View File

@ -382,7 +382,9 @@ AC_SUBST(DISABLE_ON_QUARTZ)
if test "x$enable_broadway_backend" = xyes; then
GDK_BACKENDS="$GDK_BACKENDS broadway"
cairo_backends="$cairo_backends cairo"
have_gio_unix=yes
if test "$os_unix" = "yes"; then
have_gio_unix=yes
fi
GDK_WINDOWING="$GDK_WINDOWING
#define GDK_WINDOWING_BROADWAY"
GDK_EXTRA_LIBS="$GDK_EXTRA_LIBS -lz"

View File

@ -10,7 +10,9 @@
#include <glib.h>
#include <gio/gio.h>
#ifdef G_OS_UNIX
#include <gio/gunixsocketaddress.h>
#endif
#include "broadway-server.h"

View File

@ -12,7 +12,9 @@
#include <glib.h>
#include <glib/gprintf.h>
#ifdef G_OS_UNIX
#include <gio/gunixsocketaddress.h>
#endif
#include <stdlib.h>
#include <string.h>
#include <errno.h>