[PATCH 08/22] Including <sys/devpoll.h> iff it exists.

Alejandro Colomar alx.manpages at gmail.com
Sun Jun 19 13:50:18 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 2f31736b..64200044 100644
--- a/auto/headers
+++ b/auto/headers
@@ -29,6 +29,19 @@ nxt_feature_test="#include <mntent.h>
 . auto/feature
 
 
+nxt_feature="<sys/devpoll.h>"
+nxt_feature_name=NXT_HAVE_SYS_DEVPOLL_H
+nxt_feature_run=no
+nxt_feature_incs=
+nxt_feature_libs=
+nxt_feature_test="#include <sys/devpoll.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 74b67dd1..f8d9f4ea 100644
--- a/src/nxt_unix.h
+++ b/src/nxt_unix.h
@@ -214,7 +214,7 @@
 #include <port.h>
 #endif
 
-#if (NXT_HAVE_DEVPOLL)
+#if (NXT_HAVE_SYS_DEVPOLL_H)
 #include <sys/devpoll.h>
 #endif
 
-- 
2.36.1



More information about the unit mailing list