summaryrefslogtreecommitdiff
path: root/git-compat-util.h
diff options
context:
space:
mode:
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>2010-01-11 17:41:01 +0700
committerJunio C Hamano <gitster@pobox.com>2010-01-11 19:55:33 -0800
commiteb80042c6a631aee74bd0d1b1dd845784e9788cd (patch)
treeedc78f1e6a3c2d9ac3ba306e9a1f9fe4664b4ac9 /git-compat-util.h
parent902f235378cb2b2f6dd5dd664b9630c95321f0ae (diff)
downloadgit-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.h1
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