diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2020-10-22 17:39:26 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-10-22 17:39:26 -0400 |
| commit | e02655798fbd97a069ee8be38a6eceac18335a4d (patch) | |
| tree | 29cd77dacb2f60f1258cdfd6a7e00e7d52735d82 /lib/std/os/bits/linux.zig | |
| parent | e6ac082437b87fccf6a7e592f813d3403427e512 (diff) | |
| parent | 39e34081ca9ed3bee0b850bdbf44068b163d1062 (diff) | |
| download | zig-e02655798fbd97a069ee8be38a6eceac18335a4d.tar.gz zig-e02655798fbd97a069ee8be38a6eceac18335a4d.zip | |
Merge pull request #6743 from LemonBoy/someppc64stuff
Some ppc64 stuff
Diffstat (limited to 'lib/std/os/bits/linux.zig')
| -rw-r--r-- | lib/std/os/bits/linux.zig | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/std/os/bits/linux.zig b/lib/std/os/bits/linux.zig index 6f2c68b63b..19cc3be775 100644 --- a/lib/std/os/bits/linux.zig +++ b/lib/std/os/bits/linux.zig @@ -29,6 +29,7 @@ pub usingnamespace @import("linux/prctl.zig"); pub usingnamespace @import("linux/securebits.zig"); const is_mips = builtin.arch.isMIPS(); +const is_ppc64 = builtin.arch.isPPC64(); pub const pid_t = i32; pub const fd_t = i32; @@ -540,8 +541,8 @@ pub const TIOCGPGRP = 0x540F; pub const TIOCSPGRP = 0x5410; pub const TIOCOUTQ = if (is_mips) 0x7472 else 0x5411; pub const TIOCSTI = 0x5412; -pub const TIOCGWINSZ = if (is_mips) 0x40087468 else 0x5413; -pub const TIOCSWINSZ = if (is_mips) 0x80087467 else 0x5414; +pub const TIOCGWINSZ = if (is_mips or is_ppc64) 0x40087468 else 0x5413; +pub const TIOCSWINSZ = if (is_mips or is_ppc64) 0x80087467 else 0x5414; pub const TIOCMGET = 0x5415; pub const TIOCMBIS = 0x5416; pub const TIOCMBIC = 0x5417; |
