mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-28 16:36:14 +01:00
Merge branch 'issue_3500' into 'main'
gmain: Include poll.h as early as possible, fixing build on AIX Closes #3500 See merge request GNOME/glib!4355
This commit is contained in:
commit
1334e585e7
13
glib/gmain.c
13
glib/gmain.c
@ -48,6 +48,15 @@
|
||||
#define G_MAIN_POLL_DEBUG
|
||||
#endif
|
||||
|
||||
/* We need to include this as early as possible, because on some
|
||||
* platforms like AIX, <poll.h> redefines the names we use for
|
||||
* GPollFD struct members.
|
||||
* See https://gitlab.gnome.org/GNOME/glib/-/issues/3500 */
|
||||
|
||||
#ifdef HAVE_POLL_H
|
||||
#include <poll.h>
|
||||
#endif
|
||||
|
||||
#ifdef G_OS_UNIX
|
||||
#include "glib-unix.h"
|
||||
#include <pthread.h>
|
||||
@ -69,10 +78,6 @@
|
||||
#include <errno.h>
|
||||
#include <string.h>
|
||||
|
||||
#ifdef HAVE_POLL_H
|
||||
#include <poll.h>
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_PIDFD
|
||||
#include <sys/syscall.h>
|
||||
#include <sys/wait.h>
|
||||
|
Loading…
Reference in New Issue
Block a user