]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
meson: add check for struct statx
authorThomas Weißschuh <thomas@t-8ch.de>
Thu, 3 Aug 2023 10:22:29 +0000 (12:22 +0200)
committerKarel Zak <kzak@redhat.com>
Wed, 16 Aug 2023 09:30:09 +0000 (11:30 +0200)
meson variant of commit 1fc3471dfb8b ("libmount: check for struct statx").

Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
meson.build

index 565e4fdab408958ec204407af5ab86ee72d97da2..4da9c4f9cb9c28dc0af6c4e35b688575501fb309 100644 (file)
@@ -81,6 +81,9 @@ have_mountfd_api = cc.sizeof('struct mount_attr', prefix : '#include <linux/moun
 conf.set('HAVE_STRUCT_MOUNT_ATTR', have_mountfd_api ? 1 : false)
 conf.set('HAVE_MOUNTFD_API', have_mountfd_api ? 1 : false)
 
+have_struct_statx = cc.sizeof('struct statx', prefix : '#include <linux/stat.h>') > 0
+conf.set('HAVE_STRUCT_STATX', have_struct_statx ? 1 : false)
+
 build_libmount = not get_option('build-libmount').disabled()
 conf.set('HAVE_LIBMOUNT', build_libmount ? 1 : false)
 conf.set('USE_LIBMOUNT_SUPPORT_NAMESPACES', 1)