summaryrefslogtreecommitdiffhomepage
path: root/packet.c
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2018-08-23 23:59:24 +0800
committerMatt Johnston <matt@ucc.asn.au>2018-08-23 23:59:24 +0800
commite7504b33118f30e981195b6022b8ee61a58b2e45 (patch)
treec8f27011d6e962c51acd46f91adb1b4c8234596a /packet.c
parent52adbb34c32d3e2e1bcdb941e20a6f81138b8248 (diff)
make writev #include consistent for variable declarations too
Diffstat (limited to 'packet.c')
-rw-r--r--packet.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/packet.c b/packet.c
index 8a57e10..14af83e 100644
--- a/packet.c
+++ b/packet.c
@@ -57,7 +57,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];