summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2018-08-26 22:26:42 +0800
committerMatt Johnston <matt@ucc.asn.au>2018-08-26 22:26:42 +0800
commit892c5fc1c8eafc9b909e6ab1afb71a090df06f13 (patch)
tree6ac4382dceef15be79722cce52c350e7136e818f
parentad3eacf3d65dcd2010b58790f63e4d74c4346c7c (diff)
parente7504b33118f30e981195b6022b8ee61a58b2e45 (diff)
Merge writev #include fix
-rw-r--r--packet.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/packet.c b/packet.c
index cacc06d..a1034b7 100644
--- a/packet.c
+++ b/packet.c
@@ -58,7 +58,7 @@ static void buf_compress(buffer * dest, buffer * src, unsigned int len);
void write_packet() {
ssize_t written;
-#ifdef HAVE_WRITEV
+#if defined(HAVE_WRITEV) && (defined(IOV_MAX) || defined(UIO_MAXIOV))
/* 50 is somewhat arbitrary */
unsigned int iov_count = 50;
struct iovec iov[50];