Fix build on alpine with statx change

Since 18a036a613 building on alpine fails
because usage of `__u32`, which is not portable.

> file.c: In function 'rb_stat_new':
> file.c:546:33: error: '__u32' undeclared (first use in this function)
>   # define CP_32(m) .stx_ ## m = (__u32)st->st_ ## m
This commit is contained in:
Earlopain 2025-06-09 13:19:08 +02:00 committed by Nobuyoshi Nakada
parent f4135feafc
commit 96fdaf2e39
Notes: git 2025-06-09 12:22:49 +00:00

2
file.c
View File

@ -543,7 +543,7 @@ rb_stat_new(const struct stat *st)
if (st) {
#if RUBY_USE_STATX
# define CP(m) .stx_ ## m = st->st_ ## m
# define CP_32(m) .stx_ ## m = (__u32)st->st_ ## m
# define CP_32(m) .stx_ ## m = (uint32_t)st->st_ ## m
# define CP_TS(m) .stx_ ## m = stat_ ## m ## spec(st)
rb_st->stat = (struct statx){
.stx_mask = STATX_BASIC_STATS,