summaryrefslogtreecommitdiffhomepage
path: root/netio.c
diff options
context:
space:
mode:
authorKazuo Kuroi <kazuo@irixnet.org>2020-06-10 22:09:29 +0800
committerKazuo Kuroi <kazuo@irixnet.org>2020-06-10 22:09:29 +0800
commitec993dbdbcc8b3f91ef96de86c25a2e3b62c7d04 (patch)
treeb5b45052b6bfb8a08987952b99e8e9527ef54a29 /netio.c
parentad1e9b7e3c30179a6f853817d4518ac75a60db74 (diff)
Set IOV_MAX for IRIX
Diffstat (limited to 'netio.c')
-rw-r--r--netio.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/netio.c b/netio.c
index d84975a..3988433 100644
--- a/netio.c
+++ b/netio.c
@@ -293,13 +293,15 @@ void packet_queue_to_iovec(const struct Queue *queue, struct iovec *iov, unsigne
int len;
buffer *writebuf;
- #ifndef IOV_MAX
- #if defined(__CYGWIN__) && !defined(UIO_MAXIOV)
+#ifndef IOV_MAX
+ #if defined(__CYGWIN__) && !defined(UIO_MAXIOV)
#define IOV_MAX 1024
- #else
+ #elif defined(__sgi)
+ #define IOV_MAX 512
+ #else
#define IOV_MAX UIO_MAXIOV
- #endif
#endif
+#endif
*iov_count = MIN(MIN(queue->count, IOV_MAX), *iov_count);