mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 05:35:25 +00:00
cpu: Only include <sys/auxv.h> if available
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>
This commit is contained in:
parent
f8f7bc254f
commit
82ffb81c9c
@ -690,6 +690,7 @@ headers = [
|
||||
'net/if.h',
|
||||
'pty.h',
|
||||
'pwd.h',
|
||||
'sys/auxv.h',
|
||||
'sys/ioctl.h',
|
||||
'sys/mount.h',
|
||||
'sys/syscall.h',
|
||||
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user