From: Brian Aker Date: Mon, 10 Sep 2012 08:28:45 +0000 (-0400) Subject: OSX uses a different type in sendmesg() it seems. X-Git-Tag: 1.0.11~1^2~5 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=f154f10002fe127f9defcf5f70f9654c2816b965;p=m6w6%2Flibmemcached OSX uses a different type in sendmesg() it seems. --- diff --git a/libmemcached/do.cc b/libmemcached/do.cc index 0d05ea6d..db533680 100644 --- a/libmemcached/do.cc +++ b/libmemcached/do.cc @@ -48,7 +48,11 @@ memcached_return_t memcached_vdo(org::libmemcached::Instance* instance, vector[0].length= UDP_DATAGRAM_HEADER_LENGTH; msg.msg_iov= (struct iovec*)vector; +#if defined(TARGET_OS_OSX) && TARGET_OS_OSX + msg.msg_iovlen= int(count); +#else msg.msg_iovlen= count; +#endif uint32_t retry= 5; while (--retry)