* [PATCH] Add missing #include to support TIOCGWINSZ on Solaris
@ 2010-01-11 10:41 Nguyễn Thái Ngọc Duy
0 siblings, 0 replies; only message in thread
From: Nguyễn Thái Ngọc Duy @ 2010-01-11 10:41 UTC (permalink / raw)
To: git; +Cc: Nguyễn Thái Ngọc Duy
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>
---
Solaris noob here. Somebody should check if it affects other platforms.
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 e5e9f39..de3a70e 100644
--- a/git-compat-util.h
+++ b/git-compat-util.h
@@ -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
--
1.6.4.1.401.gc69a7
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2010-01-11 10:41 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-01-11 10:41 [PATCH] Add missing #include to support TIOCGWINSZ on Solaris Nguyễn Thái Ngọc Duy
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).