Add missing #include to support TIOCGWINSZ on Solaris
commiteb80042c6a631aee74bd0d1b1dd845784e9788cd
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>
Mon, 11 Jan 2010 10:41:01 +0000 (11 17:41 +0700)
committerJunio C Hamano <gitster@pobox.com>
Tue, 12 Jan 2010 03:55:33 +0000 (11 19:55 -0800)
treeedc78f1e6a3c2d9ac3ba306e9a1f9fe4664b4ac9
parent902f235378cb2b2f6dd5dd664b9630c95321f0ae
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>
git-compat-util.h