[libvirt PATCH 1/3] cpu: Only include <sys/auxv.h> if available

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux