[glib] Move #include <sys/wait.h> down



commit 66388120d23a2fcec345874cc1a6259c08a6ef38
Author: Ryan Lortie <desrt desrt ca>
Date:   Tue Jul 20 10:45:52 2010 -0400

    Move #include <sys/wait.h> down
    
    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 |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/gio/gdbusaddress.c b/gio/gdbusaddress.c
index 39fc3bb..46d108a 100644
--- a/gio/gdbusaddress.c
+++ b/gio/gdbusaddress.c
@@ -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"



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]