Thread (2 messages) flat view 2 messages, 2 authors, 2016-06-15

Re: latest clone/pull of git.git problems with setlinebuf.

From: Boyd Lynn Gerber <hidden>
Date: 2016-06-15 22:45:17

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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help