]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
meson: check for HAVE_STRUCT_STATX_STX_MNT_ID
authorKarel Zak <kzak@redhat.com>
Thu, 3 Aug 2023 11:39:32 +0000 (13:39 +0200)
committerKarel Zak <kzak@redhat.com>
Wed, 16 Aug 2023 09:37:44 +0000 (11:37 +0200)
References: c0136ac0c98b18208508fbcfac31a843e0bb8a37
Signed-off-by: Karel Zak <kzak@redhat.com>
meson.build

index 4da9c4f9cb9c28dc0af6c4e35b688575501fb309..f6ba6908c2cac5f2807d756eef2c21e3d74d257f 100644 (file)
@@ -635,6 +635,10 @@ have = cc.has_member('struct stat', 'st_mtim.tv_nsec',
                      prefix : '#include <sys/stat.h>')
 conf.set('HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC', have ? 1 : false)
 
+have = cc.has_member('struct statx', 'stx_mnt_id',
+                     prefix : '#include <linux/stat.h>')
+conf.set('HAVE_STRUCT_STATX_STX_MNT_ID', have ? 1 : false)
+
 # replacement for AC_STRUCT_TIMEZONE
 have = cc.has_member('struct tm', 'tm_zone',
                      prefix : '#include <time.h>')