From 16fb0b0d5369ccf0557d224c70a87e4a65f59a80 Mon Sep 17 00:00:00 2001 From: karel-m <1918753+karel-m@users.noreply.github.com> Date: Wed, 20 Mar 2019 16:05:37 +0100 Subject: [PATCH] cygwin competibility fix (#64) --- netio.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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);