changeset 1619:a3bb8f8949de

Merge writev #include fix
author Matt Johnston <matt@ucc.asn.au>
date Sun, 26 Aug 2018 22:26:42 +0800
parents 1fbe598a14fb (current diff) 7bd7e95ad1f8 (diff)
children 8cdabd7d34aa
files packet.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/packet.c	Thu Aug 23 23:43:45 2018 +0800
+++ b/packet.c	Sun Aug 26 22:26:42 2018 +0800
@@ -58,7 +58,7 @@
 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];