[PATCH 10/22] Including <sys/event.h> iff it exists.
Alejandro Colomar
alx.manpages at gmail.com
Sun Jun 19 13:50:20 UTC 2022
---
auto/headers | 13 +++++++++++++
src/nxt_unix.h | 2 +-
2 files changed, 14 insertions(+), 1 deletion(-)
diff --git a/auto/headers b/auto/headers
index 3b93d5ec..4db0f046 100644
--- a/auto/headers
+++ b/auto/headers
@@ -55,6 +55,19 @@ nxt_feature_test="#include <sys/devpoll.h>
. auto/feature
+nxt_feature="<sys/event.h>"
+nxt_feature_name=NXT_HAVE_SYS_EVENT_H
+nxt_feature_run=no
+nxt_feature_incs=
+nxt_feature_libs=
+nxt_feature_test="#include <sys/event.h>
+
+ int main(void) {
+ return 0;
+ }"
+. auto/feature
+
+
nxt_feature="<sys/pollset.h>"
nxt_feature_name=NXT_HAVE_SYS_POLLSET_H
nxt_feature_run=no
diff --git a/src/nxt_unix.h b/src/nxt_unix.h
index 56603f01..72234939 100644
--- a/src/nxt_unix.h
+++ b/src/nxt_unix.h
@@ -206,7 +206,7 @@
#include <sys/eventfd.h>
#endif
-#if (NXT_HAVE_KQUEUE)
+#if (NXT_HAVE_SYS_EVENT_H)
#include <sys/event.h>
#endif
--
2.36.1
More information about the unit
mailing list