@matheusbsbs / matheus-bagliano / commits / eb80042c6a
Fork 0

Add missing #include to support TIOCGWINSZ on Solaris

On Linux TIOCGWINSZ is defined somehwere in ioctl.h, which is already included. On Solaris we also need to include termios.h. Without this term_columns() in help.c will think TIOCGWINSZ is not supported and always return 80 columns. Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Nguyễn Thái Ngọc Duy committed Jan 11, 2010 at 17:41 UTC eb80042c6a631aee74bd0d1b1dd845784e9788cd
1 file changed +1
git-compat-util.h
+1
@@ -96,6 +96,7 @@
96 #include <sys/poll.h>
97 #include <sys/socket.h>
98 #include <sys/ioctl.h>
99 +#include <termios.h>
100 #ifndef NO_SYS_SELECT_H
101 #include <sys/select.h>
102 #endif