summaryrefslogtreecommitdiff
path: root/event-config.h.cmake
diff options
context:
space:
mode:
authorDmitry Antipov <dantipov@cloudlinux.com>2022-09-15 14:06:50 +0300
committerAzat Khuzhin <a3at.mail@gmail.com>2022-09-27 22:07:43 +0300
commit117ee9a03fc74617e378f755c6b25005ac0e954f (patch)
treebfc4b1740bffab2dd13f4a2cccd59fe12fef8ff0 /event-config.h.cmake
parentf8bb9d84845be12b3ffb709bf9a26df4f40f898f (diff)
downloadlibevent-117ee9a03fc74617e378f755c6b25005ac0e954f.tar.gz
epoll: use epoll_pwait2() if available
On GNU/Linux with epoll backend, prefer epoll_pwait2() if available, which is useful to support the timeout with microsecond precision.
Diffstat (limited to 'event-config.h.cmake')
-rw-r--r--event-config.h.cmake3
1 files changed, 3 insertions, 0 deletions
diff --git a/event-config.h.cmake b/event-config.h.cmake
index a52e7136..a3cfafa1 100644
--- a/event-config.h.cmake
+++ b/event-config.h.cmake
@@ -99,6 +99,9 @@
/* Define to 1 if you have the `epoll_create1' function. */
#cmakedefine EVENT__HAVE_EPOLL_CREATE1 1
+/* Define to 1 if you have the `epoll_pwait2' function. */
+#cmakedefine EVENT__HAVE_EPOLL_PWAIT2 1
+
/* Define to 1 if you have the `epoll_ctl' function. */
#cmakedefine EVENT__HAVE_EPOLL_CTL 1