diff options
author | Fabrice Fontaine <fontaine.fabrice@gmail.com> | 2023-03-09 08:55:12 +0100 |
---|---|---|
committer | dormando <dormando@rydia.net> | 2023-04-10 17:34:48 -0700 |
commit | 455a264799793e000c6da9846fc5bd410fed7924 (patch) | |
tree | 5bd3c86a2d46b47533dbfc45f7f490837b4baf7b | |
parent | 8bcf3b45b7735b25d8d361b8342fab3b1dbb5755 (diff) | |
download | memcached-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.ac | 1 | ||||
-rw-r--r-- | crc32c.c | 2 |
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 @@ -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> |