[PATCH] Fix build failure on hurd-i386.
Guilhem Moulin
guilhem at fripost.org
Sun Apr 3 19:24:58 AWST 2022
GNU Hurd defines neither IOV_MAX nor UIO_MAXIOV.
---
netio.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/netio.c b/netio.c
index 2ed9bb1..294c239 100644
--- a/netio.c
+++ b/netio.c
@@ -304,7 +304,7 @@ void packet_queue_to_iovec(const struct Queue *queue, struct iovec *iov, unsigne
buffer *writebuf;
#ifndef IOV_MAX
- #if defined(__CYGWIN__) && !defined(UIO_MAXIOV)
+ #if (defined(__CYGWIN__) || defined(__GNU__)) && !defined(UIO_MAXIOV)
#define IOV_MAX 1024
#elif defined(__sgi)
#define IOV_MAX 512
--
2.35.1
More information about the Dropbear
mailing list