Clamav-0.81 did not build on my AIX 4.3.3 system, because CMSG_SPACE
and CMSG_LEN are not defined in <sys/socket.h>. I cribbed a patch out
of OpenLDAP and used it to fix clamd/others.c and clamdscan/client.c:
*** clamd/others.c.0.81 Tue Jan 18 18:42:50 2005
--- clamd/others.c Thu Jan 27 14:41:08 2005
***************
*** 237,242 ****
--- 237,248 ----
struct msghdr msg;
struct iovec iov[1];
#ifdef HAVE_CONTROL_IN_MSGHDR
+ #ifndef CMSG_SPACE
+ #define CMSG_SPACE(len) (_CMSG_ALIGN( sizeof(struct cmsghdr)) +
_CMSG_ALIGN(len) )
+ #endif
+ #ifndef CMSG_LEN
+ #define CMSG_LEN(len) (_CMSG_ALIGN( sizeof(struct cmsghdr)) +
(len) )
+ #endif
struct cmsghdr *cmsg;
char tmp[CMSG_SPACE(sizeof(fd))];
#endif
*** clamdscan/client.c.0.81 Thu Jan 27 14:43:48 2005
--- clamdscan/client.c Thu Jan 27 14:44:27 2005
***************
*** 146,151 ****
--- 146,157 ----
struct iovec iov[1];
struct msghdr msg;
#ifdef HAVE_CONTROL_IN_MSGHDR
+ #ifndef CMSG_SPACE
+ #define CMSG_SPACE(len) (_CMSG_ALIGN( sizeof(struct cmsghdr)) +
_CMSG_ALIGN(len) )
+ #endif
+ #ifndef CMSG_LEN
+ #define CMSG_LEN(len) (_CMSG_ALIGN( sizeof(struct cmsghdr)) +
(len) )
+ #endif
struct cmsghdr *cmsg;
char tmp[CMSG_SPACE(sizeof(fd))];
#endif
_______________________________________________
http://lists.clamav.net/cgi-bin/mailman/listinfo/clamav-devel