aboutsummaryrefslogtreecommitdiffstats
path: root/io.c
diff options
context:
space:
mode:
authorjohn haque <j.eh@mchsi.com>2012-04-16 04:48:30 -0500
committerjohn haque <j.eh@mchsi.com>2012-04-16 04:48:30 -0500
commite729adf120f279fd65578a410ca8d2d93a56f0f0 (patch)
treea4994f31128b38820d71c2b7012704869e50b7a2 /io.c
parentb07a47ccf4e41f45477a6cf9f3e4edba285ea095 (diff)
downloadegawk-e729adf120f279fd65578a410ca8d2d93a56f0f0.tar.gz
egawk-e729adf120f279fd65578a410ca8d2d93a56f0f0.tar.bz2
egawk-e729adf120f279fd65578a410ca8d2d93a56f0f0.zip
MPFR fixes from Eli.
Diffstat (limited to 'io.c')
-rw-r--r--io.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/io.c b/io.c
index e5ceedba..f6feab6a 100644
--- a/io.c
+++ b/io.c
@@ -3432,6 +3432,7 @@ get_read_timeout(IOBUF *iop)
static ssize_t
read_with_timeout(int fd, char *buf, size_t size)
{
+#ifndef __MINGW32__
fd_set readfds;
struct timeval tv;
@@ -3457,6 +3458,9 @@ read_with_timeout(int fd, char *buf, size_t size)
errno = EAGAIN;
#endif
return -1;
+#else /* __MINGW32__ */
+ return read(fd, buf, size);
+#endif /* __MINGW32__ */
}