]> 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)
committerThomas Weißschuh <thomas@t-8ch.de>
Thu, 3 Aug 2023 10:23:13 +0000 (12:23 +0200)
meson variant of commit 1fc3471dfb8b ("libmount: check for struct statx").

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

index 6275d280adcda8b20deafe47f59fb2246d53e3a2..c935627dd0746fd0183b76179b433eafcd9d5229 100644 (file)
@@ -82,6 +82,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)