Select stat struct type based on whether we are linking with libc
parent
5125eb77bd
commit
891c6ddd5f
|
@ -559,7 +559,7 @@ pub const kernel_stat = extern struct {
|
|||
};
|
||||
|
||||
/// Renamed to Stat to not conflict with the stat function.
|
||||
pub const Stat = kernel_stat;
|
||||
pub const Stat = if (std.builtin.link_libc) libc_stat else kernel_stat;
|
||||
|
||||
pub const timespec = extern struct {
|
||||
tv_sec: isize,
|
||||
|
|
Loading…
Reference in New Issue