Subject: | Breakage on Linux 64 bit -- fix included |
The module is definitely broken on Linux 64 bit. The attached patch
fixes it.
Subject: | bsd44.patch.txt |
--- bsd44.c.orig 1999-07-28 22:13:18.000000000 -0400
+++ bsd44.c 2009-04-21 19:31:36.000000000 -0400
@@ -16,7 +16,7 @@
static struct cmsghdr *cmptr = NULL; /* buffer is malloc'ed first time */
-#define CONTROLLEN (sizeof(struct cmsghdr) + sizeof(int))
+#define CONTROLLEN (CMSG_SPACE(sizeof(int)))
/* size of control buffer to send/recv one file descriptor */