zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit 23a82b5ffdc0973e6d62b0171268781f8cbcb70d (tree)
parent ebe79329a2c2cf6d74094fb6dfb1b5affde75e24
Author: Andrew Kelley <andrew@ziglang.org>
Date:   Thu, 26 Sep 2019 21:37:25 -0400

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.

Diffstat:
Mlib/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 @@ -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;