]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
meson: remove obsolete check for EPOLL_CLOEXEC
authorDaniel P. Berrangé <berrange@redhat.com>
Thu, 8 Dec 2022 09:12:25 +0000 (09:12 +0000)
committerDaniel P. Berrangé <berrange@redhat.com>
Mon, 12 Dec 2022 10:35:23 +0000 (10:35 +0000)
The EPOLL_CLOEXEC constant was introduced to Linux in

  commit a0998b50c3f0b8fdd265c63e0032f86ebe377dbf
  Author: Ulrich Drepper <drepper@redhat.com>
  Date:   Wed Jul 23 21:29:27 2008 -0700

    flag parameters: epoll_create

This is old enough that all our supported platforms can be assumed
to have this feature. For added fun this whole meson check was
semantically insane because EPOLL_CLOEXEC is not a valid arg
to unshare().

Reviewed-by: Ján Tomko <jtomko@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
meson.build

index 22679db85d06c937e5ad3a0b63f71f193e2bff59..f313767cfed242180015d2057f7843e866923c25 100644 (file)
@@ -1532,7 +1532,7 @@ if not get_option('driver_lxc').disabled() and host_machine.system() == 'linux'
 #include <sys/epoll.h>
 
 void main(void) {
-    unshare(!(LO_FLAGS_AUTOCLEAR + EPOLL_CLOEXEC));
+    unshare(!(LO_FLAGS_AUTOCLEAR));
 }
   '''
   if cc.compiles(lxc_support_code, name: 'lxc support', args: '-D_GNU_SOURCE')