mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-25 15:06:14 +01:00
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:
parent
2f50567557
commit
66388120d2
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user