From ae72fc7e43172abbda0b6b5d826db21256a233b4 Mon Sep 17 00:00:00 2001
From: Severen Redwood <severen@shrike.me>
Date: Thu, 19 May 2016 22:45:38 +1200
Subject: [PATCH] Add the TIOCGWINSZ and TIOCSWINSZ constants

---
 src/unix/bsd/freebsdlike/mod.rs | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/unix/bsd/freebsdlike/mod.rs b/src/unix/bsd/freebsdlike/mod.rs
index 43181c0a..8faebc84 100644
--- a/src/unix/bsd/freebsdlike/mod.rs
+++ b/src/unix/bsd/freebsdlike/mod.rs
@@ -668,6 +668,9 @@ pub const LOG_SECURITY: ::c_int = 13 << 3;
 pub const LOG_CONSOLE: ::c_int = 14 << 3;
 pub const LOG_NFACILITIES: ::c_int = 24;
 
+pub const TIOCGWINSZ: ::c_ulong = 0x40087468;
+pub const TIOCSWINSZ: ::c_ulong = 0x80087467;
+
 #[link(name = "util")]
 extern {
     pub fn getnameinfo(sa: *const ::sockaddr,
-- 
GitLab