From 891c6ddd5f4aa7a2de79bf5c155ffea71417bb15 Mon Sep 17 00:00:00 2001 From: Koakuma Date: Fri, 30 Oct 2020 11:46:33 +0700 Subject: [PATCH] Select stat struct type based on whether we are linking with libc --- lib/std/os/bits/linux/sparc64.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/std/os/bits/linux/sparc64.zig b/lib/std/os/bits/linux/sparc64.zig index 53024c0b73..0f2e5b5035 100644 --- a/lib/std/os/bits/linux/sparc64.zig +++ b/lib/std/os/bits/linux/sparc64.zig @@ -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,