From: Ken Raeburn Date: Fri, 20 Apr 2007 07:43:28 +0000 (+0000) Subject: Don't use sendmsg/recvmsg paths if CMSG_SPACE isn't defined X-Git-Tag: krb5-1.7-alpha1~1128 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=0068c833457bd580ccc8dda09dd209466bc89a8a;p=krb5.git Don't use sendmsg/recvmsg paths if CMSG_SPACE isn't defined git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@19510 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/kdc/network.c b/src/kdc/network.c index 3b5808e42..e73352fda 100644 --- a/src/kdc/network.c +++ b/src/kdc/network.c @@ -850,7 +850,7 @@ recv_from_to(int s, void *buf, size_t len, int flags, struct sockaddr *from, socklen_t *fromlen, struct sockaddr *to, socklen_t *tolen) { -#if !defined(IP_PKTINFO) && !defined(IPV6_PKTINFO) +#if (!defined(IP_PKTINFO) && !defined(IPV6_PKTINFO)) || !defined(CMSG_SPACE) if (to && tolen) *tolen = 0; return recvfrom(s, buf, len, flags, from, fromlen); @@ -926,7 +926,7 @@ send_to_from(int s, void *buf, size_t len, int flags, const struct sockaddr *to, socklen_t tolen, const struct sockaddr *from, socklen_t fromlen) { -#if !defined(IP_PKTINFO) && !defined(IPV6_PKTINFO) +#if (!defined(IP_PKTINFO) && !defined(IPV6_PKTINFO)) || !defined(CMSG_SPACE) return sendto(s, buf, len, flags, to, tolen); #else struct iovec iov;