[PATCH 09/22] Including <port.h> iff it exists.
Alejandro Colomar
alx.manpages at gmail.com
Sun Jun 19 13:50:19 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 64200044..3b93d5ec 100644
--- a/auto/headers
+++ b/auto/headers
@@ -29,6 +29,19 @@ nxt_feature_test="#include <mntent.h>
. auto/feature
+nxt_feature="<port.h>"
+nxt_feature_name=NXT_HAVE_PORT_H
+nxt_feature_run=no
+nxt_feature_incs=
+nxt_feature_libs=
+nxt_feature_test="#include <port.h>
+
+ int main(void) {
+ return 0;
+ }"
+. auto/feature
+
+
nxt_feature="<sys/devpoll.h>"
nxt_feature_name=NXT_HAVE_SYS_DEVPOLL_H
nxt_feature_run=no
diff --git a/src/nxt_unix.h b/src/nxt_unix.h
index f8d9f4ea..56603f01 100644
--- a/src/nxt_unix.h
+++ b/src/nxt_unix.h
@@ -210,7 +210,7 @@
#include <sys/event.h>
#endif
-#if (NXT_HAVE_EVENTPORT)
+#if (NXT_HAVE_PORT_H)
#include <port.h>
#endif
--
2.36.1
More information about the unit
mailing list