It's glibc-specific, so it's not present on many non-Linux targets that nonetheless support aarch64. Signed-off-by: Andrea Bolognani <abologna@xxxxxxxxxx> --- meson.build | 1 + src/cpu/cpu_arm.c | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/meson.build b/meson.build index 095d6ca664..766bc06b61 100644 --- a/meson.build +++ b/meson.build @@ -690,6 +690,7 @@ headers = [ 'net/if.h', 'pty.h', 'pwd.h', + 'sys/auxv.h', 'sys/ioctl.h', 'sys/mount.h', 'sys/syscall.h', diff --git a/src/cpu/cpu_arm.c b/src/cpu/cpu_arm.c index 6ba5bf0724..aa3e5d8980 100644 --- a/src/cpu/cpu_arm.c +++ b/src/cpu/cpu_arm.c @@ -25,7 +25,9 @@ # if defined(WITH_ASM_HWCAP_H) # include <asm/hwcap.h> # endif -# include <sys/auxv.h> +# if defined(WITH_SYS_AUXV_H) +# include <sys/auxv.h> +# endif #endif #include "viralloc.h" -- 2.26.2