mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-25 11:42:10 +01:00
gmain: Define _GNU_SOURCE before including glibconfig.h
As it pulls in unistd.h from something else.
This commit is contained in:
parent
ca7dee5949
commit
581e68b7d3
@ -31,6 +31,11 @@
|
||||
* MT safe
|
||||
*/
|
||||
|
||||
/* for pipe2; need to define it first to avoid
|
||||
* other headers pulling in unistd.h
|
||||
*/
|
||||
#define _GNU_SOURCE
|
||||
|
||||
#include "config.h"
|
||||
#include "glibconfig.h"
|
||||
|
||||
@ -47,8 +52,6 @@
|
||||
#define G_MAIN_POLL_DEBUG
|
||||
#endif
|
||||
|
||||
#define _GNU_SOURCE /* for pipe2 */
|
||||
|
||||
#include <signal.h>
|
||||
#include <sys/types.h>
|
||||
#include <time.h>
|
||||
|
Loading…
x
Reference in New Issue
Block a user