Skip to content
This repository was archived by the owner on Nov 9, 2017. It is now read-only.

Commit eb80042

Browse files
pcloudsgitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 902f235 commit eb80042

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

git-compat-util.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@
9696
#include <sys/poll.h>
9797
#include <sys/socket.h>
9898
#include <sys/ioctl.h>
99+
#include <termios.h>
99100
#ifndef NO_SYS_SELECT_H
100101
#include <sys/select.h>
101102
#endif

0 commit comments

Comments
 (0)