mirror of
https://github.com/git/git.git
synced 2024-11-19 00:44:22 +01: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:
parent
69945602f9
commit
aa9098611f
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user