cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: output buffering / solution

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Sun, 28 Jul 2002 19:10:41 +0200 (MET DST)

On Mon, 15 Jul 2002, M T wrote:

> I managed to find a solution my output buffering problem. In src/main.c
> there are lines in the code
>
> #ifdef HAVE_SETVBUF
> setvbuf(out->stream, NULL, _IONBF, 0);
> #endif
>
> The interesting part is that running ./configure says that "setvbuf yes"
> and in setup.log I do have HAVE_SETVBUF set to 1. But the -N switch doesn't
> work. If I remove those ifdefs from that part of code everything works just
> the way it should be. After all, I have a working setvbuf and I really
> don't need those ifdefs. Could it be that the configuration is broken
> somewhere?

Hey, very good digging!

The problem is that src/config.h.in doesn't contain "#undef HAVE_SETVBUF"
(only the lib/config.h.in file has that), so it doesn't get added to the
config.h file as it should.

I've corrected this now for the next release. Thanks!

-- 
  Daniel Stenberg -- curl groks URLs
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
Received on 2002-07-28