summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 61678d8)
raw | patch | inline | side by side (parent: 61678d8)
author | Linus Torvalds <torvalds@osdl.org> | |
Thu, 27 Apr 2006 16:02:54 +0000 (09:02 -0700) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Thu, 27 Apr 2006 18:45:39 +0000 (11:45 -0700) |
When I split out the builtin commands into their own files, I left the
include of <sys/ioctl.h> in git.c rather than moving it to the file that
needed it (builtin-help.c).
Nobody seems to have noticed, because everything still worked, but because
the TIOCGWINSZ macro was now no longer defined when compiling the
"term_columns()" function, it would no longer automatically notice the
terminal size unless your system used the ancient "COLUMNS" environment
variable approach.
Trivially fixed by just moving the header include to the file that
actually needs it.
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
include of <sys/ioctl.h> in git.c rather than moving it to the file that
needed it (builtin-help.c).
Nobody seems to have noticed, because everything still worked, but because
the TIOCGWINSZ macro was now no longer defined when compiling the
"term_columns()" function, it would no longer automatically notice the
terminal size unless your system used the ancient "COLUMNS" environment
variable approach.
Trivially fixed by just moving the header include to the file that
actually needs it.
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
builtin-help.c | patch | blob | history | |
git.c | patch | blob | history |
diff --git a/builtin-help.c b/builtin-help.c
index 10a59cc403d68166c614f2cf023d62413c5c1fcb..7470faa56692e17608d202000b78a91565360b72 100644 (file)
--- a/builtin-help.c
+++ b/builtin-help.c
*
* Builtin help-related commands (help, usage, version)
*/
+#include <sys/ioctl.h>
#include "cache.h"
#include "builtin.h"
#include "exec_cmd.h"