The musl libc statx interface is provided independently from the kernel headers, so not all defines from the kernel header (here: STATX__RESERVED) are exported, and checking linux/stat.h as in the current configure test checking for newest additions to struct statx will not provide a result that is consistent with the actual code using the libc interface. On Alpine Linux this is already fixed by providing the defines OVERRIDE_SYSTEM_STATX and STATX__RESERVED manually instead of fixing up the autodetection (OVERRIDE_SYSTEM_STATX) and providing a fallback (STATX__RESERVED) [1]. [1]: https://gitlab.alpinelinux.org/alpine/aports/-/blob/8ff6aa1e459a75b66375f56269fce43ca2c2f9bf/main/xfsprogs/APKBUILD#L27 Signed-off-by: Johannes Nixdorf <johannes@xxxxxxxxxxx> --- Johannes Nixdorf (2): configure: Base NEED_INTERNAL_STATX on libc headers first libfrog: Define STATX__RESERVED if not provided by the system libfrog/statx.h | 5 ++++- m4/package_libcdev.m4 | 10 +++++++++- 2 files changed, 13 insertions(+), 2 deletions(-) --- base-commit: 854665693e6770c0730c1354871f08d01be6a333 change-id: 20250809-musl-fixes-99160afadcdf Best regards, -- Johannes Nixdorf <johannes@xxxxxxxxxxx>