RE: scgi 1.11 on Solaris 8 In updating scgi from from 1.10 to 1.11 on Solaris 8 I ran into a problem with CMSG_LEN and CMSG_SPACE not being defined. I have attempted to resolve the problem with the following patch. I can't say that this is the proper fix but initial testing looks OK. Any thoughts? thanks, Jim C. McDonald --- passfd.c.orig 2006-08-21 14:42:03.000000000 -0400 +++ passfd.c 2006-08-21 14:42:34.000000000 -0400 @@ -16,6 +16,14 @@ #endif #endif /* __OpenBSD__ */ +/* Solaris doesn't define these */ +#ifndef CMSG_LEN +#define CMSG_LEN(size) (sizeof (struct cmsghdr) + (size)) +#endif +#ifndef CMSG_SPACE +#define CMSG_SPACE(size) (sizeof (struct cmsghdr) + (size)) +#endif + #include#include #include