aboutsummaryrefslogtreecommitdiff
path: root/lib/std/os/bits/linux.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2019-09-26 21:37:25 -0400
committerAndrew Kelley <andrew@ziglang.org>2019-09-26 21:38:04 -0400
commit23a82b5ffdc0973e6d62b0171268781f8cbcb70d (patch)
treefa5e69518f18c6faf830afdcf95bed95faf599a3 /lib/std/os/bits/linux.zig
parentebe79329a2c2cf6d74094fb6dfb1b5affde75e24 (diff)
downloadzig-23a82b5ffdc0973e6d62b0171268781f8cbcb70d.tar.gz
zig-23a82b5ffdc0973e6d62b0171268781f8cbcb70d.zip
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 (limited to 'lib/std/os/bits/linux.zig')
-rw-r--r--lib/std/os/bits/linux.zig2
1 files changed, 1 insertions, 1 deletions
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;