Add missing #include to support TIOCGWINSZ on Solaris
PATCH 1/1 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]>
---
Solaris noob here. Somebody should check if it affects other platforms.
git-compat-util.h | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
git-compat-util.h +1 -0
@@ -90,6 +90,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
Signature · 1 line
1.6.4.1.401.gc69a7