diff options
author | Ryan Lortie <desrt@desrt.ca> | 2010-07-20 10:45:52 -0400 |
---|---|---|
committer | Ryan Lortie <desrt@desrt.ca> | 2010-07-20 10:49:30 -0400 |
commit | 66388120d23a2fcec345874cc1a6259c08a6ef38 (patch) | |
tree | 30f60d74c4297ce9449b54622f786d83f9946c26 /gio/gdbusaddress.c | |
parent | 2f5056755763e4628ed0e64954229e0a7dd9dbfb (diff) | |
download | glib-66388120d23a2fcec345874cc1a6259c08a6ef38.tar.gz |
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.
Diffstat (limited to 'gio/gdbusaddress.c')
-rw-r--r-- | gio/gdbusaddress.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/gio/gdbusaddress.c b/gio/gdbusaddress.c index 39fc3bb94..46d108a0d 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" |