authorgravatar for koachan@protonmail.comKoakuma <koachan@protonmail.com> 2020-10-30 11:46:33+07:00
committergravatar for koachan@protonmail.comKoakuma <koachan@protonmail.com> 2020-10-30 11:46:33+07:00
log891c6ddd5f4aa7a2de79bf5c155ffea71417bb15
tree8a764298d69f665317cf3950850f5f63af1c14ea
parent5125eb77bdf7b87ebf65957f540d82879eb94238

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


1 files changed, 1 insertions(+), 1 deletions(-)

lib/std/os/bits/linux/sparc64.zig+1-1
...@@ -559,7 +559,7 @@ pub const kernel_stat = extern struct {...@@ -559,7 +559,7 @@ pub const kernel_stat = extern struct {
559};559};
560560
561/// Renamed to Stat to not conflict with the stat function.561/// Renamed to Stat to not conflict with the stat function.
562pub const Stat = kernel_stat;562pub const Stat = if (std.builtin.link_libc) libc_stat else kernel_stat;
563563
564pub const timespec = extern struct {564pub const timespec = extern struct {
565 tv_sec: isize,565 tv_sec: isize,