summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 6994560)
raw | patch | inline | side by side (parent: 6994560)
author | Michal Rokos <michal.rokos@nextsoft.cz> | |
Tue, 21 Nov 2006 22:19:28 +0000 (23:19 +0100) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Wed, 22 Nov 2006 00:57:55 +0000 (16:57 -0800) |
This tiny patch makes GIT compile again on HP-UX 11i.
[jc: The setlinebuf() is described as unportable to BSD before
4.2; it's not even in POSIX, while setvbuf() is in ISO C.]
Signed-off-by: Michal Rokos <michal.rokos@nextsoft.cz>
Signed-off-by: Junio C Hamano <junkio@cox.net>
[jc: The setlinebuf() is described as unportable to BSD before
4.2; it's not even in POSIX, while setvbuf() is in ISO C.]
Signed-off-by: Michal Rokos <michal.rokos@nextsoft.cz>
Signed-off-by: Junio C Hamano <junkio@cox.net>
builtin-archive.c | patch | blob | history |
diff --git a/builtin-archive.c b/builtin-archive.c
index 2df1a84b85207961a44ce2c81665c5d473e20a9c..a8a1f079bf4e28a3f07d49b6a4723ee8dea17178 100644 (file)
--- a/builtin-archive.c
+++ b/builtin-archive.c
if (remote)
return run_remote_archiver(remote, argc, argv);
- setlinebuf(stderr);
+ setvbuf(stderr, NULL, _IOLBF, BUFSIZ);
memset(&ar, 0, sizeof(ar));
tree_idx = parse_archive_args(argc, argv, &ar);