[gtk+] broadway: Only use gio-unix on G_OS_UNIX
- From: Alexander Larsson <alexl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] broadway: Only use gio-unix on G_OS_UNIX
- Date: Thu, 13 Jun 2013 17:27:04 +0000 (UTC)
commit d4dacc596fd58ab18e8e52ec437b5dd52b02a6a4
Author: Tarnyko <tarnyko tarnyko net>
Date: Thu Jun 13 18:15:10 2013 +0200
broadway: Only use gio-unix on G_OS_UNIX
configure.ac | 4 +++-
gdk/broadway/broadwayd.c | 2 ++
gdk/broadway/gdkbroadway-server.c | 2 ++
3 files changed, 7 insertions(+), 1 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index b06182b..8885944 100644
--- a/configure.ac
+++ b/configure.ac
@@ -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"
diff --git a/gdk/broadway/broadwayd.c b/gdk/broadway/broadwayd.c
index e3995c2..cd6a888 100644
--- a/gdk/broadway/broadwayd.c
+++ b/gdk/broadway/broadwayd.c
@@ -10,7 +10,9 @@
#include <glib.h>
#include <gio/gio.h>
+#ifdef G_OS_UNIX
#include <gio/gunixsocketaddress.h>
+#endif
#include "broadway-server.h"
diff --git a/gdk/broadway/gdkbroadway-server.c b/gdk/broadway/gdkbroadway-server.c
index 058f878..92d4e60 100644
--- a/gdk/broadway/gdkbroadway-server.c
+++ b/gdk/broadway/gdkbroadway-server.c
@@ -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>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]