WINDOWS can seek

This commit is contained in:
U-Khasa\Vitor 2010-03-03 18:50:56 -06:00
parent c6204240cb
commit 1b65f5e220
1 changed files with 2 additions and 0 deletions

View File

@ -295,6 +295,7 @@ unix_upd_stream_info (StreamDesc * s)
s->status |= Tty_Stream_f|Reset_Eof_Stream_f|Promptable_Stream_f;
/* make all console descriptors unbuffered */
setvbuf(s->u.file.file, NULL, _IONBF, 0);
return;
}
#if _MSC_VER
/* standard error stream should never be buffered */
@ -302,6 +303,7 @@ unix_upd_stream_info (StreamDesc * s)
setvbuf(s->u.file.file, NULL, _IONBF, 0);
}
#endif
s->status |= Seekable_Stream_f;
return;
}
#else