linux does not like setbuf on mem stream
This commit is contained in:
parent
9ef2f87165
commit
2dbf860a58
2
os/mem.c
2
os/mem.c
@ -213,7 +213,7 @@ int Yap_open_buf_write_stream(encoding_t enc, memBufSource src) {
|
|||||||
#if MAY_WRITE
|
#if MAY_WRITE
|
||||||
#if HAVE_OPEN_MEMSTREAM
|
#if HAVE_OPEN_MEMSTREAM
|
||||||
st->file = open_memstream(&st->nbuf, &st->nsize);
|
st->file = open_memstream(&st->nbuf, &st->nsize);
|
||||||
setbuf(st->file, NULL);
|
// setbuf(st->file, NULL);
|
||||||
st->status |= Seekable_Stream_f;
|
st->status |= Seekable_Stream_f;
|
||||||
#else
|
#else
|
||||||
st->file = fmemopen((void *)buf, nchars, "w");
|
st->file = fmemopen((void *)buf, nchars, "w");
|
||||||
|
Reference in New Issue
Block a user