# define sock_write(sd, buf, len) write(sd, buf, len)
# define sock_read(sd, buf, len) read(sd, buf, len)
# define sock_close(sd) close(sd)
-# define fd_read(fd, buf, len, timeout) read(fd, buf, len)
+# define fd_read(fd, buf, len) read(fd, buf, len)
# define fd_write(sd, buf, len) write(sd, buf, len)
# define fd_close(sd) close(sd)
#endif
#ifdef WIN32
static int
-fd_read(sock_T fd, char_u *buf, size_t len, int timeout)
+fd_read(sock_T fd, char_u *buf, size_t len)
{
HANDLE h = (HANDLE)fd;
DWORD nread;
if (use_socket)
len = sock_read(fd, buf, MAXMSGSIZE);
else
- len = fd_read(fd, buf, MAXMSGSIZE, channel->ch_timeout);
+ len = fd_read(fd, buf, MAXMSGSIZE);
if (len <= 0)
break; /* error or nothing more to read */