* [PATCH] setlinebuf() vs HP-UX
@ 2006-11-21 22:19 Michal Rokos
0 siblings, 0 replies; only message in thread
From: Michal Rokos @ 2006-11-21 22:19 UTC (permalink / raw)
To: git
Hello,
it seems that HP-UX doesn't have setlinebuf() defined.
This tiny patch makes GIT compile again on HP-UX 11i.
Signed-off-by: Michal Rokos <michal.rokos@nextsoft.cz>
diff --git a/builtin-archive.c b/builtin-archive.c
index 2df1a84..a8a1f07 100644
--- a/builtin-archive.c
+++ b/builtin-archive.c
@@ -249,7 +249,7 @@ int cmd_archive(int argc, const char **a
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);
--
Michal Rokos
NextSoft s.r.o.
Vyskočilova 1/1410
140 21 Praha 4
phone: +420 267 224 311
fax: +420 267 224 307
mobile: +420 736 646 591
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2006-11-21 22:19 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-11-21 22:19 [PATCH] setlinebuf() vs HP-UX Michal Rokos
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).