Make gdbus-peer build on !linux
authorMatthias Clasen <mclasen@redhat.com>
Sun, 22 Aug 2010 02:06:56 +0000 (22:06 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Sun, 22 Aug 2010 02:06:56 +0000 (22:06 -0400)
Based on a patch by Koop Mast, bug 627088.

gio/tests/gdbus-peer.c

index a904c7a..faad98f 100644 (file)
@@ -42,6 +42,9 @@
 #include <sys/socket.h>
 #endif
 
+/* for SOCK_STREAM and AF_UNIX */
+#include <sys/socket.h>
+
 /* used in test_overflow */
 #ifdef G_OS_UNIX
 #include <gio/gunixconnection.h>