summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--configure.ac1
-rw-r--r--crc32c.c2
2 files changed, 2 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index e6bc4ba..d94f6fb 100644
--- a/configure.ac
+++ b/configure.ac
@@ -556,6 +556,7 @@ AH_BOTTOM([#ifdef HAVE_INTTYPES_H
#include <inttypes.h>
#endif
])
+AC_CHECK_HEADERS([sys/auxv.h])
dnl **********************************************************************
dnl Figure out if this system has the stupid sasl_callback_ft
diff --git a/crc32c.c b/crc32c.c
index 17bc6b0..8121c68 100644
--- a/crc32c.c
+++ b/crc32c.c
@@ -274,7 +274,7 @@ void crc32c_init(void) {
}
#elif defined(__aarch64__) && (defined(__linux__) || defined(__APPLE__))
-#if defined(__linux__)
+#if defined(__linux__) && defined(HAVE_SYS_AUX_H)
#include <sys/auxv.h>
#elif defined(__APPLE__)
#include <sys/sysctl.h>