summaryrefslogtreecommitdiff
path: root/memcached.c
diff options
context:
space:
mode:
authorDavid Carlier <devnexen@gmail.com>2020-07-04 10:59:28 +0100
committerdormando <dormando@rydia.net>2020-11-02 14:24:27 -0800
commit0b374c63ab7e63c0098983d0a68cefedfd94557a (patch)
tree1f50c70cf575efe33107ffde1b57c8fcd094a9a6 /memcached.c
parent5d4785936e3e8937047daafd874c792668dc8528 (diff)
downloadmemcached-0b374c63ab7e63c0098983d0a68cefedfd94557a.tar.gz
illumos build fixes + require libevent2
libevent 1 doesn't have the socket id wrapper. since version 2 is 10 years old we should fail to build on version 1. explicit cast to avoid possible pedantic build flags complains (ie can be the old iovec interface)
Diffstat (limited to 'memcached.c')
-rw-r--r--memcached.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/memcached.c b/memcached.c
index 1c5fce0..3ce7d73 100644
--- a/memcached.c
+++ b/memcached.c
@@ -2670,7 +2670,7 @@ static enum transmit_result transmit_udp(conn *c) {
msg.msg_namelen = resp->request_addr_size;
// First IOV is the custom UDP header.
- iovs[0].iov_base = udp_hdr;
+ iovs[0].iov_base = (void *)udp_hdr;
iovs[0].iov_len = UDP_HEADER_SIZE;
build_udp_header(udp_hdr, resp);
iovused++;