{"thread":{"id":"22162","subject":"[PATCH] Add missing #include to support TIOCGWINSZ on Solaris","startedAt":"2010-01-11T10:41:01Z","lastAt":"2010-01-11T10:41:01Z","messageCount":1,"participants":["Nguyễn Thái Ngọc Duy"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"131281","messageId":"1263206461-4960-1-git-send-email-pclouds@gmail.com","threadId":"22162","inReplyTo":null,"subject":"[PATCH] Add missing #include to support TIOCGWINSZ on Solaris","fromName":"Nguyễn Thái Ngọc Duy","fromEmail":"pclouds@gmail.com","sentAt":"2010-01-11T10:41:01Z","receivedAt":"2010-01-11T10:41:01Z","isPatch":true,"sender":{"key":"pclouds@gmail.com","avatar":"https://avatars.githubusercontent.com/u/720?v=4"},"body":"On Linux TIOCGWINSZ is defined somehwere in ioctl.h, which is already\nincluded. On Solaris we also need to include termios.h. Without this\nterm_columns() in help.c will think TIOCGWINSZ is not supported and\nalways return 80 columns.\n\nSigned-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>\n---\n Solaris noob here. Somebody should check if it affects other platforms.\n\n git-compat-util.h |    1 +\n 1 files changed, 1 insertions(+), 0 deletions(-)\n\ndiff --git a/git-compat-util.h b/git-compat-util.h\nindex e5e9f39..de3a70e 100644\n--- a/git-compat-util.h\n+++ b/git-compat-util.h\n@@ -90,6 +90,7 @@\n #include <sys/poll.h>\n #include <sys/socket.h>\n #include <sys/ioctl.h>\n+#include <termios.h>\n #ifndef NO_SYS_SELECT_H\n #include <sys/select.h>\n #endif\n-- \n1.6.4.1.401.gc69a7\n"}]}