diff options
author | Michal Rokos <michal.rokos@nextsoft.cz> | 2006-11-21 23:19:28 +0100 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2006-11-21 16:57:55 -0800 |
commit | aa9098611fb53e4e9d33757102f96145946811f4 (patch) | |
tree | e041a5861247b51c3e8c83f46bdbe6792fa914eb /builtin-archive.c | |
parent | 69945602f95710f16ab4a5f8edfee38dc65555fa (diff) | |
download | git-aa9098611fb53e4e9d33757102f96145946811f4.tar.gz |
archive: use setvbuf() instead of setlinebuf()
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>
Diffstat (limited to 'builtin-archive.c')
-rw-r--r-- | builtin-archive.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin-archive.c b/builtin-archive.c index 2df1a84b85..a8a1f079bf 100644 --- a/builtin-archive.c +++ b/builtin-archive.c @@ -249,7 +249,7 @@ int cmd_archive(int argc, const char **argv, const char *prefix) 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); |