]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
meson: Drop checks for some functions and header files
authorMichal Privoznik <mprivozn@redhat.com>
Tue, 1 Sep 2020 12:30:34 +0000 (14:30 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Wed, 2 Sep 2020 08:28:10 +0000 (10:28 +0200)
In meson.build, we check for presence of unshare() function
explicitly (even though there is the function usability check a
few hundred lines below), but never have any code depending on
HAVE_UNSHARE. The same applies to stdarg.h and sys/sysctl.h
header files - either we simply include them or guard their
include using different conditionals.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
meson.build

index 7435b23df91f2a55b5d66211889518aa4f116bb7..c1967d63580e0a4c4e98646e2fea7f1a6837b90c 100644 (file)
@@ -672,7 +672,6 @@ functions = [
   'stat64',
   'symlink',
   'sysctlbyname',
-  'unshare',
 ]
 
 foreach function : functions
@@ -696,11 +695,9 @@ headers = [
   'net/if.h',
   'pty.h',
   'pwd.h',
-  'stdarg.h',
   'sys/ioctl.h',
   'sys/mount.h',
   'sys/syscall.h',
-  'sys/sysctl.h',
   'sys/ucred.h',
   'syslog.h',
   'util.h',