[PATCH 12/22] Including <sys/signalfd.h> iff it exists.
Alejandro Colomar
alx.manpages at gmail.com
Sun Jun 19 13:50:22 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 d6918cec..69a66550 100644
--- a/auto/headers
+++ b/auto/headers
@@ -131,3 +131,16 @@ nxt_feature_test="#include <sys/sendfile.h>
return 0;
}"
. auto/feature
+
+
+nxt_feature="<sys/signalfd.h>"
+nxt_feature_name=NXT_HAVE_SYS_SIGNALFD_H
+nxt_feature_run=no
+nxt_feature_incs=
+nxt_feature_libs=
+nxt_feature_test="#include <sys/signalfd.h>
+
+ int main(void) {
+ return 0;
+ }"
+. auto/feature
diff --git a/src/nxt_unix.h b/src/nxt_unix.h
index c5c4de72..ddfe434c 100644
--- a/src/nxt_unix.h
+++ b/src/nxt_unix.h
@@ -198,7 +198,7 @@
#endif
-#if (NXT_HAVE_SIGNALFD)
+#if (NXT_HAVE_SYS_SIGNALFD_H)
#include <sys/signalfd.h>
#endif
--
2.36.1
More information about the unit
mailing list