setlinebuf vs. setvbuf: Caldera OpenUNIX8.

Larry Rosenman ler at lerctr.org
Mon Oct 29 03:24:50 EST 2001


* Kevin Steves <stevesk at pobox.com> [011027 19:40]:
> On Fri, 26 Oct 2001, Larry Rosenman wrote:
> :I tried to compile OpenSSH 2.9.9p2 on my Caldera OpenUNIX8 system and
> :it couldn't find setlinebuf.  setlinebuf is a BSD compatibility
> :function.  It was called from sftp-int.c.  Looking at the code, there
> :is a #ifdef for HAVE_SETVBUF, but apparently configure isn't set to
> :look for setvbuf (which we DO have).
> :
> :I added a #define HAVE_SETVBUF 1 to config.h, and this problem goes
> :away.
> 
> configure does check for setvbuf, so i don't know what i wrong.  i wonder
> if the #ifdefs can be removed?  what systems do not have setvbuf()?
In the configure output, i could *NOT* find setvbuf mentioned at all. 

I wonder what went wrong.

LER

-- 
Larry Rosenman                     http://www.lerctr.org/~ler
Phone: +1 972-414-9812                 E-Mail: ler at lerctr.org
US Mail: 1905 Steamboat Springs Drive, Garland, TX 75044-6749



More information about the openssh-unix-dev mailing list