Mercurial > dropbear
comparison 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 |
comparison
equal
deleted
inserted
replaced
1617:1fbe598a14fb | 1619:a3bb8f8949de |
---|---|
56 | 56 |
57 /* non-blocking function writing out a current encrypted packet */ | 57 /* non-blocking function writing out a current encrypted packet */ |
58 void write_packet() { | 58 void write_packet() { |
59 | 59 |
60 ssize_t written; | 60 ssize_t written; |
61 #ifdef HAVE_WRITEV | 61 #if defined(HAVE_WRITEV) && (defined(IOV_MAX) || defined(UIO_MAXIOV)) |
62 /* 50 is somewhat arbitrary */ | 62 /* 50 is somewhat arbitrary */ |
63 unsigned int iov_count = 50; | 63 unsigned int iov_count = 50; |
64 struct iovec iov[50]; | 64 struct iovec iov[50]; |
65 #else | 65 #else |
66 int len; | 66 int len; |