diff packet.c @ 1619:a3bb8f8949de

Merge writev #include fix
author Matt Johnston <matt@ucc.asn.au>
date Sun, 26 Aug 2018 22:26:42 +0800
parents 8f7b6f75aa58 7bd7e95ad1f8
children c4bf28ccab97
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];