On Wed, 3 Sep 2008, Junio C Hamano wrote:
Boyd Lynn Gerber [off-list ref] writes:
quoted
I just noticed that setlinebuf is coming back as undefined when trying
to build the lastest version.
on UnixWare 7.1.4 I get
LINK git-var
CC daemon.o
UX:acomp: WARNING: "daemon.c", line 485: end-of-loop code not reached
LINK git-daemon
Undefined first referenced
symbol in file
setlinebuf daemon.o
UX:ld: ERROR: Symbol referencing errors. No output written to git-daemon
gmake: *** [git-daemon] Error 1
Ah, ok. I should have noticed that setlinebuf() was outside POSIX (it is
not usable on older BSDs either).
Let's see if we can replace it with setvbuf() which is POSIX.
This fixes the problem. on both OS's.
Thanks,
--
Boyd Gerber [off-list ref]
ZENEZ 1042 East Fort Union #135, Midvale Utah 84047