mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-06-02 10:50:05 +02:00
Merge branch 'epoll-create' into 'main'
giounix-private: Fix macro for checking for epoll_create1() See merge request GNOME/glib!4563
This commit is contained in:
commit
08489deb06
@ -23,7 +23,7 @@
|
||||
#include <unistd.h>
|
||||
#include <sys/stat.h>
|
||||
#include <sys/types.h>
|
||||
#if defined (HAVE_EPOLL_CREATE)
|
||||
#if defined (HAVE_EPOLL_CREATE1)
|
||||
#include <sys/epoll.h>
|
||||
#elif defined (HAVE_KQUEUE)
|
||||
#include <sys/event.h>
|
||||
@ -65,7 +65,7 @@ _g_fd_is_pollable (int fd)
|
||||
* absolute certainty:
|
||||
*/
|
||||
|
||||
#if defined (HAVE_EPOLL_CREATE)
|
||||
#if defined (HAVE_EPOLL_CREATE1)
|
||||
/*
|
||||
* Linux
|
||||
*
|
||||
|
@ -267,7 +267,7 @@ test_pollable_unix_nulldev (void)
|
||||
"on a system where we are able to tell it apart from devices "
|
||||
"that actually implement poll");
|
||||
|
||||
#if defined (HAVE_EPOLL_CREATE) || defined (HAVE_KQUEUE)
|
||||
#if defined (HAVE_EPOLL_CREATE1) || defined (HAVE_KQUEUE)
|
||||
int fd = g_open ("/dev/null", O_RDWR, 0);
|
||||
g_assert_cmpint (fd, !=, -1);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user