From: Thomas Weißschuh Date: Fri, 10 Apr 2026 16:04:58 +0000 (+0200) Subject: meson: test for statx::stx_mnt_id in sys/stat.h X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=af6168533cb011489bd0b4b1a2fbbaaeec6859b2;p=thirdparty%2Futil-linux.git meson: test for statx::stx_mnt_id in sys/stat.h Both the check for the general availability of 'struct statx' and the code actual code use sys/stat.h and not linux/stat.h. The test for stx_mnt_id also needs to test in sys/stat.h as otherwise the detection result is wrong. Signed-off-by: Thomas Weißschuh --- diff --git a/meson.build b/meson.build index 582f27564..3f5a5131a 100644 --- a/meson.build +++ b/meson.build @@ -111,7 +111,7 @@ conf.set('HAVE_MOUNTFD_API', have_mountfd_api ? 1 : false) have_struct_statx = cc.has_type('struct statx', args : '-D_GNU_SOURCE', prefix : '#include ') conf.set('HAVE_STRUCT_STATX', have_struct_statx ? 1 : false) have = cc.has_member('struct statx', 'stx_mnt_id', - prefix : '#include ') + prefix : '#include ') conf.set('HAVE_STRUCT_STATX_STX_MNT_ID', have ? 1 : false)