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:
Andrea Bolognani 2021-02-05 15:03:32 +01:00
parent f8f7bc254f
commit 82ffb81c9c
2 changed files with 4 additions and 1 deletions

View 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',

View 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"