giounix-private: Fix macro for checking for epoll_create1()

Like many things I touch, I broke this in
fd8ede0b661aa67032bbc3e7afc88aff22d7984a.

Spotted by Sebastian Wilhelmi in
fd8ede0b66 (note_2385263).

Signed-off-by: Philip Withnall <pwithnall@gnome.org>
This commit is contained in:
Philip Withnall 2025-03-20 11:12:58 +00:00
parent 88e8ee515c
commit 20f083ea7c
No known key found for this signature in database
GPG Key ID: C5C42CFB268637CA
2 changed files with 3 additions and 3 deletions

View File

@ -23,7 +23,7 @@
#include <unistd.h> #include <unistd.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <sys/types.h> #include <sys/types.h>
#if defined (HAVE_EPOLL_CREATE) #if defined (HAVE_EPOLL_CREATE1)
#include <sys/epoll.h> #include <sys/epoll.h>
#elif defined (HAVE_KQUEUE) #elif defined (HAVE_KQUEUE)
#include <sys/event.h> #include <sys/event.h>
@ -65,7 +65,7 @@ _g_fd_is_pollable (int fd)
* absolute certainty: * absolute certainty:
*/ */
#if defined (HAVE_EPOLL_CREATE) #if defined (HAVE_EPOLL_CREATE1)
/* /*
* Linux * Linux
* *

View File

@ -267,7 +267,7 @@ test_pollable_unix_nulldev (void)
"on a system where we are able to tell it apart from devices " "on a system where we are able to tell it apart from devices "
"that actually implement poll"); "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); int fd = g_open ("/dev/null", O_RDWR, 0);
g_assert_cmpint (fd, !=, -1); g_assert_cmpint (fd, !=, -1);