From: Nguyễn Thái Ngọc Duy Date: Mon, 11 Jan 2010 10:41:01 +0000 (+0700) Subject: Add missing #include to support TIOCGWINSZ on Solaris X-Git-Tag: v1.7.0-rc0~85^2 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=eb80042;p=git.git 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 Signed-off-by: Junio C Hamano --- diff --git a/git-compat-util.h b/git-compat-util.h index 5c596875c..a979e41c1 100644 --- a/git-compat-util.h +++ b/git-compat-util.h @@ -96,6 +96,7 @@ #include #include #include +#include #ifndef NO_SYS_SELECT_H #include #endif