Skip to content

Commit 6b25c6b

Browse files
authored
druntime, Musl, MIPS_O32: Fix size of stat_t.st_dev (#21641)
The musl definition can be found at https://git.musl-libc.org/cgit/musl/tree/arch/mips/bits/stat.h?id=8fd5d031876345e42ae3d11cc07b962f8625bc3b Signed-off-by: Andrei Horodniceanu <a.horodniceanu@proton.me>
1 parent c397436 commit 6b25c6b

1 file changed

Lines changed: 10 additions & 2 deletions

File tree

  • druntime/src/core/sys/posix/sys

druntime/src/core/sys/posix/sys/stat.d

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -263,8 +263,16 @@ version (linux)
263263
{
264264
struct stat_t
265265
{
266-
c_ulong st_dev;
267-
c_long[3] st_pad1;
266+
version (CRuntime_Musl)
267+
{
268+
dev_t st_dev;
269+
c_long[2] st_pad1;
270+
}
271+
else
272+
{
273+
c_ulong st_dev;
274+
c_long[3] st_pad1;
275+
}
268276
ino_t st_ino;
269277
mode_t st_mode;
270278
nlink_t st_nlink;

0 commit comments

Comments
 (0)