| ... | @@ -559,7 +559,7 @@ pub const kernel_stat = extern struct { | ... | @@ -559,7 +559,7 @@ pub const kernel_stat = extern struct { |
| 559 | }; | 559 | }; |
| 560 | | 560 | |
| 561 | /// Renamed to Stat to not conflict with the stat function. | 561 | /// Renamed to Stat to not conflict with the stat function. |
| 562 | pub const Stat = kernel_stat; | 562 | pub const Stat = if (std.builtin.link_libc) libc_stat else kernel_stat; |
| 563 | | 563 | |
| 564 | pub const timespec = extern struct { | 564 | pub const timespec = extern struct { |
| 565 | tv_sec: isize, | 565 | tv_sec: isize, |