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

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

 



On Sun, Feb 07, 2021 at 02:45:57PM +0100, Andrea Bolognani wrote:
> It's glibc-specific, so it's not present on many non-Linux
> targets that nonetheless support aarch64.

Not true that it's glibc specific, it is available on FreeBSD as well
but it provides elf_aux_info instead of getauxval.

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

Attachment: signature.asc
Description: PGP signature


[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