From 3e3b012172eccc011752a5a34b415d3a0f459b98 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= Date: Thu, 8 Dec 2022 09:17:37 +0000 Subject: [PATCH] meson: drop check for unshare() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The unshare() syscall was introduced to Linux in commit 2da436e00f9a5fdd0fb6b31e4b2b2ba82e8f5ab8 Author: JANAK DESAI Date: Tue Feb 7 12:59:03 2006 -0800 [PATCH] unshare system call -v5: system call registration for i386 This is old enough that all our supported platforms can be assumed to have this feature. Furthermore, the virprocess.c file was already using unshare() with nothing more than a #ifdef __linux__ check. Reviewed-by: Ján Tomko Signed-off-by: Daniel P. Berrangé --- meson.build | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/meson.build b/meson.build index 212c3cfafb..0a09e510c7 100644 --- a/meson.build +++ b/meson.build @@ -1526,20 +1526,7 @@ elif get_option('driver_libxl').enabled() endif if not get_option('driver_lxc').disabled() and host_machine.system() == 'linux' and conf.has('WITH_LIBVIRTD') - lxc_support_code = ''' -#include -#include -#include - -void main(void) { - unshare(1); -} - ''' - if cc.compiles(lxc_support_code, name: 'lxc support', args: '-D_GNU_SOURCE') - conf.set('WITH_LXC', 1) - elif get_option('driver_lxc').enabled() - error('Required kernel features for LXC were not found') - endif + conf.set('WITH_LXC', 1) elif get_option('driver_lxc').enabled() error('linux and remote_driver are required for LXC') endif