]> git.proxmox.com Git - mirror_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)
committerChristian Brauner (Microsoft) <christian.brauner@ubuntu.com>
Wed, 17 Aug 2022 07:48:32 +0000 (09:48 +0200)
Signed-off-by: Christian Brauner (Microsoft) <christian.brauner@ubuntu.com>
meson.build

index 666824c5ad3860f047b9b43924dc0710ea614ab2..3f18404176d16c4160646d0e34da2910a7dd9033 100644 (file)
@@ -85,6 +85,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)