[PATCH 07/22] Including <sys/pollset.h> iff it exists.
Alejandro Colomar
alx.manpages at gmail.com
Sun Jun 19 13:50:17 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 5d21ad06..2f31736b 100644
--- a/auto/headers
+++ b/auto/headers
@@ -29,6 +29,19 @@ nxt_feature_test="#include <mntent.h>
. auto/feature
+nxt_feature="<sys/pollset.h>"
+nxt_feature_name=NXT_HAVE_SYS_POLLSET_H
+nxt_feature_run=no
+nxt_feature_incs=
+nxt_feature_libs=
+nxt_feature_test="#include <sys/pollset.h>
+
+ int main(void) {
+ return 0;
+ }"
+. auto/feature
+
+
nxt_feature="<sys/prctl.h>"
nxt_feature_name=NXT_HAVE_SYS_PRCTL_H
nxt_feature_run=no
diff --git a/src/nxt_unix.h b/src/nxt_unix.h
index 85a40416..74b67dd1 100644
--- a/src/nxt_unix.h
+++ b/src/nxt_unix.h
@@ -218,7 +218,7 @@
#include <sys/devpoll.h>
#endif
-#if (NXT_HAVE_POLLSET)
+#if (NXT_HAVE_SYS_POLLSET_H)
#include <sys/pollset.h>
#endif
--
2.36.1
More information about the unit
mailing list