--- gdk/broadway/broadwayd.c.orig	2015-01-11 02:16:39.000000000 +0000
+++ gdk/broadway/broadwayd.c	2015-01-15 16:05:21.144522756 +0000
@@ -10,7 +10,7 @@
 
 #include <glib.h>
 #include <gio/gio.h>
-#ifdef G_OS_UNIX
+#ifdef __linux__
 #include <gio/gunixsocketaddress.h>
 #endif
 
@@ -424,7 +424,7 @@
   const GOptionEntry entries[] = {
     { "port", 'p', 0, G_OPTION_ARG_INT, &http_port, "Httpd port", "PORT" },
     { "address", 'a', 0, G_OPTION_ARG_STRING, &http_address, "Ip address to bind to ", "ADDRESS" },
-#ifdef G_OS_UNIX
+#ifdef __linux__
     { "unixsocket", 'u', 0, G_OPTION_ARG_STRING, &unixsocket_address, "Unix domain socket address", "ADDRESS" },
 #endif
     { NULL }
@@ -451,7 +451,7 @@
 
   if (display == NULL)
     {
-#ifdef G_OS_UNIX
+#ifdef __linux__
       display = ":0";
 #else
       display = ":tcp";
@@ -467,7 +467,7 @@
       address = g_inet_socket_address_new (inet, port + 9090);
       g_object_unref (inet);
     }
-#ifdef G_OS_UNIX
+#ifdef __linux__
   else if (display[0] == ':' && g_ascii_isdigit(display[1]))
     {
       port = strtol (display + strlen (":"), NULL, 10);


--- gdk/broadway/gdkbroadway-server.c.orig	2015-01-11 02:16:39.000000000 +0000
+++ gdk/broadway/gdkbroadway-server.c	2015-01-15 16:05:21.146522552 +0000
@@ -12,7 +12,7 @@
 
 #include <glib.h>
 #include <glib/gprintf.h>
-#ifdef G_OS_UNIX
+#ifdef __linux__
 #include <gio/gunixsocketaddress.h>
 #endif
 #include <stdlib.h>
@@ -109,7 +109,7 @@
 
   if (display == NULL)
     {
-#ifdef G_OS_UNIX
+#ifdef __linux__
       display = ":0";
 #else
       display = ":tcp";
@@ -124,7 +124,7 @@
       address = g_inet_socket_address_new (inet, port);
       g_object_unref (inet);
     }
-#ifdef G_OS_UNIX
+#ifdef __linux__
   else if (display[0] == ':' && g_ascii_isdigit(display[1]))
     {
       port = strtol (display + strlen (":"), NULL, 10);
