[memcached] bradfitz,
r360: lame-ass fix to make this build on Solar...
commits at code.sixapart.com
commits at code.sixapart.com
Tue Sep 5 00:21:22 UTC 2006
lame-ass fix to make this build on Solaris 10, which lacks some fields in msghdr. easier than this: http://lists.gnupg.org/pipermail/gnupg-devel/2005-September/022431.html
U trunk/server/memcached.c
Modified: trunk/server/memcached.c
===================================================================
--- trunk/server/memcached.c 2006-09-05 00:03:09 UTC (rev 359)
+++ trunk/server/memcached.c 2006-09-05 00:21:22 UTC (rev 360)
@@ -167,13 +167,15 @@
}
msg = c->msglist + c->msgused;
+
+ /* this wipes msg_iovlen, msg_control, msg_controllen, and
+ msg_flags, the last 3 of which aren't defined on solaris: */
+ memset(msg, 0, sizeof(struct msghdr));
+
msg->msg_iov = &c->iov[c->iovused];
- msg->msg_iovlen = 0;
msg->msg_name = &c->request_addr;
msg->msg_namelen = c->request_addr_size;
- msg->msg_control = 0;
- msg->msg_controllen = 0;
- msg->msg_flags = 0;
+
c->msgbytes = 0;
c->msgused++;
More information about the memcached-commits
mailing list