diff options
author | Nguyễn Thái Ngọc Duy <pclouds@gmail.com> | 2010-01-11 17:41:01 +0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2010-01-11 19:55:33 -0800 |
commit | eb80042c6a631aee74bd0d1b1dd845784e9788cd (patch) | |
tree | edc78f1e6a3c2d9ac3ba306e9a1f9fe4664b4ac9 /git-compat-util.h | |
parent | 902f235378cb2b2f6dd5dd664b9630c95321f0ae (diff) | |
download | git-eb80042c6a631aee74bd0d1b1dd845784e9788cd.tar.gz |
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>
Diffstat (limited to 'git-compat-util.h')
-rw-r--r-- | git-compat-util.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/git-compat-util.h b/git-compat-util.h index 5c596875c2..a979e41c15 100644 --- a/git-compat-util.h +++ b/git-compat-util.h @@ -96,6 +96,7 @@ #include <sys/poll.h> #include <sys/socket.h> #include <sys/ioctl.h> +#include <termios.h> #ifndef NO_SYS_SELECT_H #include <sys/select.h> #endif |