From: Guilhem Moulin <guilhem@debian.org>
Date: Sun, 3 Apr 2022 13:06:33 +0200
Subject: Fix FTBFS on hurd-i386.

GNU Hurd defines neither IOV_MAX nor UIO_MAXIOV.

Forwarded: https://lists.ucc.gu.uwa.edu.au/pipermail/dropbear/2022q2/002329.html
---
 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 
