Skip to content

Commit

Permalink
Define TIOCGWINSZ on netbsd
Browse files Browse the repository at this point in the history
  • Loading branch information
rschmitt committed Jan 9, 2017
1 parent 20a1a73 commit 0a2e7c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/screen/unix.rs
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ impl Terminal {

fn winsize(&self) -> Option<(u16, u16)> {
extern { fn ioctl(fd: c_int, request: c_ulong, ...) -> c_int; }
#[cfg(any(target_os = "macos", target_os = "freebsd"))]
#[cfg(any(target_os = "macos", target_os = "freebsd", target_os = "netbsd"))]
const TIOCGWINSZ: c_ulong = 0x40087468;

#[cfg(any(target_os = "linux", target_os = "android"))]
Expand Down

0 comments on commit 0a2e7c0

Please sign in to comment.