Mercurial > dropbear
changeset 1618:7bd7e95ad1f8
make writev #include consistent for variable declarations too
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Thu, 23 Aug 2018 23:59:24 +0800 |
parents | 5d2d1021ca00 |
children | a3bb8f8949de 572a7aefa188 |
files | packet.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/packet.c Thu Aug 23 23:43:12 2018 +0800 +++ b/packet.c Thu Aug 23 23:59:24 2018 +0800 @@ -57,7 +57,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];