[PATCH 16/22] Including <sys/mercury.h> iff it exists.

Alejandro Colomar alx.manpages at gmail.com
Sun Jun 19 13:50:26 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 98865630..7ae572d5 100644
--- a/auto/headers
+++ b/auto/headers
@@ -94,6 +94,19 @@ nxt_feature_test="#include <sys/event.h>
 . auto/feature
 
 
+nxt_feature="<sys/mercury.h>"
+nxt_feature_name=NXT_HAVE_SYS_MERCURY_H
+nxt_feature_run=no
+nxt_feature_incs=
+nxt_feature_libs=
+nxt_feature_test="#include <sys/mercury.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 fab51f38..2fe784c0 100644
--- a/src/nxt_unix.h
+++ b/src/nxt_unix.h
@@ -132,7 +132,7 @@
 
 #include <sys/mpctl.h>
 
-#if (NXT_HAVE_HG_GETHRTIME)
+#if (NXT_HAVE_SYS_MERCURY_H)
 #include <sys/mercury.h>
 #endif
 
-- 
2.36.1



More information about the unit mailing list