Mercurial > dropbear
changeset 1708:58f7ca8ebc82
Set IOV_MAX for IRIX
author | Kazuo Kuroi <kazuo@irixnet.org> |
---|---|
date | Wed, 10 Jun 2020 22:09:29 +0800 |
parents | 41a0ff8d5a89 |
children | 04155ce30759 |
files | netio.c |
diffstat | 1 files changed, 6 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/netio.c Sat May 30 00:05:49 2020 +0800 +++ b/netio.c Wed Jun 10 22:09:29 2020 +0800 @@ -293,13 +293,15 @@ 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);