summaryrefslogtreecommitdiffhomepage
path: root/netio.c
diff options
context:
space:
mode:
Diffstat (limited to 'netio.c')
-rw-r--r--netio.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/netio.c b/netio.c
index 87e7fb4..8452003 100644
--- a/netio.c
+++ b/netio.c
@@ -294,7 +294,11 @@ void packet_queue_to_iovec(const struct Queue *queue, struct iovec *iov, unsigne
buffer *writebuf;
#ifndef IOV_MAX
- #define IOV_MAX UIO_MAXIOV
+ #if defined(__CYGWIN__) && !defined(UIO_MAXIOV)
+ #define IOV_MAX 1024
+ #else
+ #define IOV_MAX UIO_MAXIOV
+ #endif
#endif
*iov_count = MIN(MIN(queue->count, IOV_MAX), *iov_count);