Better fix for the build problem
authorMatthias Clasen <mclasen@redhat.com>
Sun, 22 Aug 2010 02:09:32 +0000 (22:09 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Sun, 22 Aug 2010 02:09:32 +0000 (22:09 -0400)
Use gnetworkingprivate.h instead, patch by Emilio Pozuelo Monfort,
bug 627407.

gio/tests/gdbus-peer.c

index faad98f..e400d3b 100644 (file)
 /* for g_unlink() */
 #include <glib/gstdio.h>
 
+#include <gio/gnetworkingprivate.h>
 #include <gio/gunixsocketaddress.h>
 #include <gio/gunixfdlist.h>
 
-/* for struct ucred */
-#ifdef __linux__
-#define __USE_GNU
-#include <sys/types.h>
-#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>