changeset 1636:35a1e8de3aec

cygwin competibility fix (#64)
author karel-m <1918753+karel-m@users.noreply.github.com>
date Wed, 20 Mar 2019 16:05:37 +0100
parents c9b5017b0a7b
children cf8dc6204fb6
files netio.c
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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);