diff -ur clamav-0.81.original/clamd/others.c clamav-0.81/clamd/others.c
--- clamav-0.81.original/clamd/others.c	2005-02-01 17:35:42.000000000 +0000
+++ clamav-0.81/clamd/others.c	2005-02-01 18:35:34.000000000 +0000
@@ -60,6 +60,23 @@
 #endif /* HAVE_POLL_H */
 #endif /* HAVE_POLL */
 
+#ifndef OSSH_ALIGNBYTES
+#define OSSH_ALIGNBYTES        (sizeof(int) - 1)
+#endif
+#ifndef __CMSG_ALIGN
+#define        __CMSG_ALIGN(p) (((u_int)(p) + OSSH_ALIGNBYTES) &~ OSSH_ALIGNBYTES)
+#endif
+
+/* Length of the contents of a control message of length len */
+#ifndef CMSG_LEN
+#define        CMSG_LEN(len)        (__CMSG_ALIGN(sizeof(struct cmsghdr)) + (len))
+#endif
+
+/* Length of the space taken up by a padded control message of length len */
+#ifndef CMSG_SPACE
+#define        CMSG_SPACE(len)        (__CMSG_ALIGN(sizeof(struct cmsghdr)) + __CMSG_ALIGN(len))
+#endif
+
 #include "memory.h"
 #include "cfgparser.h"
 #include "session.h"
