]> granicus.if.org Git - neomutt/commitdiff
Fix compilation error on Solaris.
authorThomas Klausner <wiz@NetBSD.org>
Sat, 1 Jul 2017 09:39:14 +0000 (11:39 +0200)
committerThomas Klausner <wiz@NetBSD.org>
Sat, 1 Jul 2017 09:39:14 +0000 (11:39 +0200)
  resize.c: In function 'mutt_resize_screen':
  resize.c:38:18: error: storage size of 'w' isn't known
     struct winsize w;
                    ^
  resize.c:47:19: error: 'TIOCGWINSZ' undeclared (first use in this function)
       if (ioctl(fd, TIOCGWINSZ, &w) != -1)
                     ^

resize.c

index ff287d49230422f11739ee6772bea0a4e97e6a17..220a4bedec502a6e487224a6b6718198e60d69c3 100644 (file)
--- a/resize.c
+++ b/resize.c
@@ -19,6 +19,7 @@
 #include <fcntl.h>
 #include <stdbool.h>
 #include <stdlib.h>
+#include <termios.h>
 #include <unistd.h>
 #include "lib.h"
 #include "mutt_curses.h"