Просмотр исходного кода

Fix terminal window size for DragonFly

Michael Neumann 10 лет назад
Родитель
Сommit
96018841f6
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      src/term.rs

+ 1 - 1
src/term.rs

@@ -16,7 +16,7 @@ mod c {
     #[cfg(any(target_os = "linux", target_os = "android"))]
     #[cfg(any(target_os = "linux", target_os = "android"))]
     static TIOCGWINSZ: c_ulong = 0x5413;
     static TIOCGWINSZ: c_ulong = 0x5413;
 
 
-    #[cfg(any(target_os = "macos", target_os = "ios"))]
+    #[cfg(any(target_os = "macos", target_os = "ios", target_os = "dragonfly"))]
     static TIOCGWINSZ: c_ulong = 0x40087468;
     static TIOCGWINSZ: c_ulong = 0x40087468;
 
 
     extern {
     extern {