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.
This commit is contained in:
Ryan Lortie 2010-07-20 10:45:52 -04:00
parent 2f50567557
commit 66388120d2

View 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"