mirror of
https://github.com/ziglang/zig.git
synced 2026-02-21 00:35:10 +00:00
Select stat struct type based on whether we are linking with libc
This commit is contained in:
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…
x
Reference in New Issue
Block a user