Fix for Solaris 9.

git-svn-id: file:///svn/unbound/trunk@877 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
Wouter Wijngaards 2008-01-18 09:50:59 +00:00
parent 5e420a8275
commit e8f4ac9b1a

View 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)
{