# HG changeset patch # User karel-m <1918753+karel-m@users.noreply.github.com> # Date 1553094337 -3600 # Node ID 35a1e8de3aecc715a2ee82ad436d87ee5401c71b # Parent c9b5017b0a7b50978642af9b8f77f68c23125a9f cygwin competibility fix (#64) diff -r c9b5017b0a7b -r 35a1e8de3aec netio.c --- a/netio.c Wed Mar 20 08:01:41 2019 -0700 +++ b/netio.c Wed Mar 20 16:05:37 2019 +0100 @@ -294,7 +294,11 @@ 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);