From 95e985b4c9091028e10eb1633712d5d0fce8002e Mon Sep 17 00:00:00 2001 From: Josh Green Date: Sat, 2 May 2009 19:58:23 +0000 Subject: [PATCH] Removed WIN32 use of recv() in fluid_istream_gets() since it is also used for stdin. Probably wont work for WIN32 TCP sockets though. --- fluidsynth/src/fluid_sys.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/fluidsynth/src/fluid_sys.c b/fluidsynth/src/fluid_sys.c index bf73606f..127b20cf 100644 --- a/fluidsynth/src/fluid_sys.c +++ b/fluidsynth/src/fluid_sys.c @@ -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) {