diff options
author | john haque <j.eh@mchsi.com> | 2012-04-16 04:48:30 -0500 |
---|---|---|
committer | john haque <j.eh@mchsi.com> | 2012-04-16 04:48:30 -0500 |
commit | e729adf120f279fd65578a410ca8d2d93a56f0f0 (patch) | |
tree | a4994f31128b38820d71c2b7012704869e50b7a2 /io.c | |
parent | b07a47ccf4e41f45477a6cf9f3e4edba285ea095 (diff) | |
download | egawk-e729adf120f279fd65578a410ca8d2d93a56f0f0.tar.gz egawk-e729adf120f279fd65578a410ca8d2d93a56f0f0.tar.bz2 egawk-e729adf120f279fd65578a410ca8d2d93a56f0f0.zip |
MPFR fixes from Eli.
Diffstat (limited to 'io.c')
-rw-r--r-- | io.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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__ */ } |