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: v6.0.0~101^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7b1836bce13d32343df9cc1bdb6e0205ef6f195d;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 666824c5a..3f1840417 100644 --- a/meson.build +++ b/meson.build @@ -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)