]> xenbits.xensource.com Git - libvirt.git/commitdiff
cpu: Only include <sys/auxv.h> if available
authorAndrea Bolognani <abologna@redhat.com>
Fri, 5 Feb 2021 14:03:32 +0000 (15:03 +0100)
committerAndrea Bolognani <abologna@redhat.com>
Tue, 9 Feb 2021 08:14:05 +0000 (09:14 +0100)
This header is not present on several non-Linux targets that
nonetheless support aarch64.

Signed-off-by: Andrea Bolognani <abologna@redhat.com>
Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
meson.build
src/cpu/cpu_arm.c

index 095d6ca6642ed5ecc0f6cd8057185f9487458411..766bc06b6106420a2f7b754b3c70854b54f381fe 100644 (file)
@@ -690,6 +690,7 @@ headers = [
   'net/if.h',
   'pty.h',
   'pwd.h',
+  'sys/auxv.h',
   'sys/ioctl.h',
   'sys/mount.h',
   'sys/syscall.h',
index 6ba5bf07242d808578a2f0a024b93788a70e4f5f..aa3e5d8980a5794d7298b4c1ab7bc1243573f7c2 100644 (file)
@@ -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"