Move #include <sys/wait.h> down
authorRyan Lortie <desrt@desrt.ca>
Tue, 20 Jul 2010 14:45:52 +0000 (10:45 -0400)
committerRyan Lortie <desrt@desrt.ca>
Tue, 20 Jul 2010 14:49:30 +0000 (10:49 -0400)
Until after we include the glib stuff, so that we have G_OS_UNIX
defined.

For some reason <stdlib.h> pulls in <sys/wait.h> on Fedora so this
wasn't a problem, but many others have reported the issue.

gio/gdbusaddress.c

index 39fc3bb..46d108a 100644 (file)
@@ -24,9 +24,6 @@
 
 #include <stdlib.h>
 #include <string.h>
-#ifdef G_OS_UNIX
-#include <sys/wait.h>
-#endif
 #include <stdio.h>
 #include <errno.h>
 
@@ -44,6 +41,7 @@
 
 #ifdef G_OS_UNIX
 #include <gio/gunixsocketaddress.h>
+#include <sys/wait.h>
 #endif
 
 #include "glibintl.h"