OSX uses a different type in sendmesg() it seems.
authorBrian Aker <brian@tangent.org>
Mon, 10 Sep 2012 08:28:45 +0000 (04:28 -0400)
committerBrian Aker <brian@tangent.org>
Mon, 10 Sep 2012 08:28:45 +0000 (04:28 -0400)
libmemcached/do.cc

index 0d05ea6d4523675a6d89e0987e2ccd44b6b6c837..db533680f77193f80ea3dd6ce37eb65bcb1f3639 100644 (file)
@@ -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)