summaryrefslogtreecommitdiffstats
path: root/src/term.rs
diff options
context:
space:
mode:
authorBen S <ogham@bsago.me>2014-11-23 21:29:11 +0000
committerBen S <ogham@bsago.me>2014-11-23 21:29:11 +0000
commit933f98d2c3734a69260b6d10ae059130417ae813 (patch)
tree8eedebcd31602a20eb15f5b1a0bf2100472f4e27 /src/term.rs
parent26f8ad08bf508bfab78fc17a477ed839960634f5 (diff)
Upgrade to latest Rust nightly
Diffstat (limited to 'src/term.rs')
-rw-r--r--src/term.rs7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/term.rs b/src/term.rs
index 9e88adf..d0f52c6 100644
--- a/src/term.rs
+++ b/src/term.rs
@@ -21,12 +21,11 @@ mod c {
// Unfortunately the actual command is not standardised...
- #[cfg(target_os = "linux")]
- #[cfg(target_os = "android")]
+ #[cfg(any(target_os = "linux", target_os = "android"))]
+
static TIOCGWINSZ: c_ulong = 0x5413;
- #[cfg(target_os = "freebsd")]
- #[cfg(target_os = "macos")]
+ #[cfg(any(target_os = "macos", target_os = "ios"))]
static TIOCGWINSZ: c_ulong = 0x40087468;
extern {