From: Johannes Nixdorf Date: Sat, 9 Aug 2025 17:13:08 +0000 (+0200) Subject: libfrog: Define STATX__RESERVED if not provided by the system X-Git-Tag: v6.17.0~22 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=07956672b784af598dc5604db8fafd0702b8fe13;p=thirdparty%2Fxfsprogs-dev.git libfrog: Define STATX__RESERVED if not provided by the system This define is not provided by musl libc. Use the fallback that is already provided if statx and its types (tested on STATX_TYPE) are not defined in the general case. This fixes one cause for failing to compile against musl libc. Signed-off-by: Johannes Nixdorf Reviewed-by: Christoph Hellwig Reviewed-by: Petr Vaněk --- diff --git a/libfrog/statx.h b/libfrog/statx.h index e11e2d8f..9fb15adc 100644 --- a/libfrog/statx.h +++ b/libfrog/statx.h @@ -191,7 +191,6 @@ statx( #define STATX_BLOCKS 0x00000400U /* Want/got stx_blocks */ #define STATX_BASIC_STATS 0x000007ffU /* The stuff in the normal stat struct */ #define STATX_BTIME 0x00000800U /* Want/got stx_btime */ -#define STATX__RESERVED 0x80000000U /* Reserved for future struct statx expansion */ /* * This is deprecated, and shall remain the same value in the future. To avoid @@ -221,6 +220,10 @@ statx( #endif /* STATX_TYPE */ +#ifndef STATX__RESERVED +#define STATX__RESERVED 0x80000000U /* Reserved for future struct statx expansion */ +#endif + #ifndef STATX_MNT_ID #define STATX_MNT_ID 0x00001000U /* Got stx_mnt_id */ #endif