Select stat struct type based on whether we are linking with libc

master
Koakuma 2020-10-30 11:46:33 +07:00
parent 5125eb77bd
commit 891c6ddd5f
1 changed files with 1 additions and 1 deletions

View File

@ -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,