From: Wouter Wijngaards Date: Fri, 18 Jan 2008 09:50:59 +0000 (+0000) Subject: Fix for Solaris 9. X-Git-Tag: release-0.9~63 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e8f4ac9b1abb1e2ec2e11095a19a253161d38ac4;p=thirdparty%2Funbound.git Fix for Solaris 9. git-svn-id: file:///svn/unbound/trunk@877 be551aaa-1e26-0410-a405-d3ace91eadb9 --- diff --git a/util/netevent.c b/util/netevent.c index 15924fc60..c8921a50a 100644 --- a/util/netevent.c +++ b/util/netevent.c @@ -178,6 +178,11 @@ comm_point_send_udp_msg(struct comm_point *c, ldns_buffer* packet, return 1; } +/** if no CMSG_LEN (Solaris 9) define something reasonable for one element */ +#ifndef CMSG_LEN +#define CMSG_LEN(x) (sizeof(struct cmsghdr)+(x)) +#endif + /** print debug ancillary info */ void p_ancil(const char* str, struct comm_reply* r) {