diff options
author | karel-m <1918753+karel-m@users.noreply.github.com> | 2019-03-20 16:05:37 +0100 |
---|---|---|
committer | Matt Johnston <matt@ucc.asn.au> | 2019-03-20 23:05:37 +0800 |
commit | 16fb0b0d5369ccf0557d224c70a87e4a65f59a80 (patch) | |
tree | 5e4ea14175a5247f8330b9c076550e7d50ec037c | |
parent | 493ab8fd813b71903d51ea81f903770c6c3efa7d (diff) |
cygwin competibility fix (#64)
-rw-r--r-- | netio.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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); |