From: Cole Robinson Date: Mon, 1 Aug 2022 19:20:38 +0000 (-0400) Subject: lxc: containter: fix build with glibc 2.36 X-Git-Tag: v8.7.0-rc1~234 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9493c9b79dc541ec9e0fd73c6d87bdf8d30aaa90;p=thirdparty%2Flibvirt.git lxc: containter: fix build with glibc 2.36 With glibc 2.36, sys/mount.h and linux/mount.h conflict: https://sourceware.org/glibc/wiki/Release/2.36#Usage_of_.3Clinux.2Fmount.h.3E_and_.3Csys.2Fmount.h.3E lxc_container.c imports sys/mount.h and linux/fs.h, which pulls in linux/mount.h. linux/fs.h isn't required here though. glibc sys/mount.h has had MS_MOVE since 2.12 in 2010 Reviewed-by: Erik Skultety Signed-off-by: Cole Robinson --- diff --git a/src/lxc/lxc_container.c b/src/lxc/lxc_container.c index b5278831da..a5401c2186 100644 --- a/src/lxc/lxc_container.c +++ b/src/lxc/lxc_container.c @@ -33,9 +33,6 @@ /* Yes, we want linux private one, for _syscall2() macro */ #include -/* For MS_MOVE */ -#include - #if WITH_CAPNG # include #endif