From: Christian Brauner Date: Wed, 17 Aug 2022 07:48:32 +0000 (+0200) Subject: build: prevent the inclusion of linux/mount.h with a hack X-Git-Tag: lxc-5.0.2~40 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=02900160c8314c28b517b79c8ea11c290e57a133;p=thirdparty%2Flxc.git build: prevent the inclusion of linux/mount.h with a hack Signed-off-by: Christian Brauner (Microsoft) --- diff --git a/meson.build b/meson.build index 718c1d8b4..7efcbd2cc 100644 --- a/meson.build +++ b/meson.build @@ -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)