summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabrice Fontaine <fontaine.fabrice@gmail.com>2023-03-09 08:55:12 +0100
committerdormando <dormando@rydia.net>2023-04-10 17:34:48 -0700
commit455a264799793e000c6da9846fc5bd410fed7924 (patch)
tree5bd3c86a2d46b47533dbfc45f7f490837b4baf7b
parent8bcf3b45b7735b25d8d361b8342fab3b1dbb5755 (diff)
downloadmemcached-455a264799793e000c6da9846fc5bd410fed7924.tar.gz
check for sys/auxv.h
Check for sys/auxv.h to avoid the following uclibc build failure on aarch64: crc32c.c:277:10: fatal error: sys/auxv.h: No such file or directory 277 | #include <sys/auxv.h> | ^~~~~~~~~~~~ Fixes: - http://autobuild.buildroot.org/results/08591fbf9677ff126492c50c15170c641bcab56a Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
-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>