]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
Fix for Solaris 9.
authorWouter Wijngaards <wouter@nlnetlabs.nl>
Fri, 18 Jan 2008 09:50:59 +0000 (09:50 +0000)
committerWouter Wijngaards <wouter@nlnetlabs.nl>
Fri, 18 Jan 2008 09:50:59 +0000 (09:50 +0000)
git-svn-id: file:///svn/unbound/trunk@877 be551aaa-1e26-0410-a405-d3ace91eadb9

util/netevent.c

index 15924fc600d16ff26034921792f6823e759a4f60..c8921a50ad76e7e9cedb979aae8bee6a08e8c6f7 100644 (file)
@@ -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)
 {