Removed WIN32 use of recv() in fluid_istream_gets() since it is also used for stdin. Probably wont work for WIN32 TCP sockets though.

This commit is contained in:
Josh Green 2009-05-02 19:58:23 +00:00
parent 70aff30d4b
commit 95e985b4c9

View file

@ -979,13 +979,8 @@ fluid_istream_gets (fluid_istream_t in, char* buf, int len)
while (--len > 0)
{
#ifndef WIN32
n = read(in, &c, 1);
if (n == -1) return -1;
#else
n = recv (in, &c, 1, 0);
if (n == SOCKET_ERROR) return -1;
#endif
if (n == 0)
{