RE: scgi 1.11 on Solaris 8

"James C. McDonald" <[email protected]>
Newsgroups gmane.comp.web.quixote.user
Message-ID <[email protected]>
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 <sys/types.h>
#include <sys/socket.h>
#include <sys/uio.h>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.