mirror of
https://github.com/clearml/dropbear
synced 2025-01-31 10:57:01 +00:00
cygwin competibility fix (#64)
This commit is contained in:
parent
493ab8fd81
commit
16fb0b0d53
4
netio.c
4
netio.c
@ -294,8 +294,12 @@ void packet_queue_to_iovec(const struct Queue *queue, struct iovec *iov, unsigne
|
||||
buffer *writebuf;
|
||||
|
||||
#ifndef IOV_MAX
|
||||
#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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user