From 0068c833457bd580ccc8dda09dd209466bc89a8a Mon Sep 17 00:00:00 2001 From: Ken Raeburn Date: Fri, 20 Apr 2007 07:43:28 +0000 Subject: [PATCH] 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 --- src/kdc/network.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; -- 2.26.2