1
0
Fork 0
mirror of https://github.com/git/git.git synced 2024-05-30 19:36:30 +02:00

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>
This commit is contained in:
Michal Rokos 2006-11-21 23:19:28 +01:00 committed by Junio C Hamano
parent 69945602f9
commit aa9098611f

View File

@ -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);