From 23a82b5ffdc0973e6d62b0171268781f8cbcb70d Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Thu, 26 Sep 2019 21:37:25 -0400 Subject: [PATCH] fix mipsel regression in previous commit I think that should actually be a compile error, it's a usingnamespace that depends on itself. This workaround is fine for now. --- lib/std/os/bits/linux.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/std/os/bits/linux.zig b/lib/std/os/bits/linux.zig index 8381d3b8cb..301c5d1775 100644 --- a/lib/std/os/bits/linux.zig +++ b/lib/std/os/bits/linux.zig @@ -362,7 +362,7 @@ pub const AF_QIPCRTR = PF_QIPCRTR; pub const AF_SMC = PF_SMC; pub const AF_MAX = PF_MAX; -pub usingnamespace if (!@hasDecl(@This(), "SO_DEBUG")) +pub usingnamespace if (!is_mips) struct { pub const SO_DEBUG = 1; pub const SO_REUSEADDR = 2;