make writev #include consistent for variable declarations too

This commit is contained in:
Matt Johnston 2018-08-23 23:59:24 +08:00
parent 52adbb34c3
commit e7504b3311

View File

@ -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];