Michal Rokos  committed aa90986

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 <>
Signed-off-by: Junio C Hamano <>

  • Participants
  • Parent commits 6994560
  • Branches master

Comments (0)

Files changed (1)

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