Hack to make fdopen() work with socks

This commit is contained in:
jjgarcia 2005-11-14 16:04:34 +00:00
parent 5bd56c2787
commit 71d1f22081

View file

@ -2820,6 +2820,7 @@ ecl_make_stream_from_fd(cl_object fname, int fd, enum ecl_smmode smm)
#endif
stream->stream.object1 = fname; /* not really used */
stream->stream.int0 = stream->stream.int1 = 0;
setbuf(fp, NULL);
#if !defined(GBC_BOEHM)
setbuf(fp, NULL);
setbuf(fp, stream->stream.buffer = cl_alloc_atomic(BUFSIZ));