]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
build: prevent the inclusion of linux/mount.h with a hack
authorChristian Brauner <brauner@kernel.org>
Wed, 17 Aug 2022 07:48:32 +0000 (09:48 +0200)
committerStéphane Graber <stgraber@ubuntu.com>
Fri, 16 Dec 2022 16:32:59 +0000 (11:32 -0500)
Signed-off-by: Christian Brauner (Microsoft) <christian.brauner@ubuntu.com>
meson.build

index 718c1d8b4c8d73bf094477c16b16c5c15fe94bc9..7efcbd2ccb874a5502db8aabec9b710e2def2846 100644 (file)
@@ -88,6 +88,11 @@ srcconf = configuration_data()
 srcconf.set('_GNU_SOURCE', true)
 srcconf.set('_FILE_OFFSET_BITS', 64)
 srcconf.set('__STDC_FORMAT_MACROS', true)
+
+## This is a hack to prevent any inclusion ofr linux/mount.h which causes
+## conflicts with sys/mount.h all over the place
+srcconf.set('_LINUX_MOUNT_H', true)
+
 srcconf.set_quoted('APPARMOR_CACHE_DIR', lxcapparmorcachedir)
 srcconf.set_quoted('LIBEXECDIR', libexecdir)
 srcconf.set_quoted('LOGPATH', lxclogpath)