From e8f4ac9b1abb1e2ec2e11095a19a253161d38ac4 Mon Sep 17 00:00:00 2001 From: Wouter Wijngaards Date: Fri, 18 Jan 2008 09:50:59 +0000 Subject: [PATCH] Fix for Solaris 9. git-svn-id: file:///svn/unbound/trunk@877 be551aaa-1e26-0410-a405-d3ace91eadb9 --- util/netevent.c | 5 +++++ 1 file changed, 5 insertions(+) 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) { -- 2.47.2