inn's configure script on openbsd

Wim Lewis wiml at hhhh.org
Tue Aug 24 03:31:52 UTC 2010


INN 2.5.2 thinks that OpenBSD (4.6) doesn't support Unix-domain sockets.
The problem is that <sys/socket.h> doesn't include cleanly unless you
include <sys/types.h>, and the AF_UNIX test in m4/socket.m4 doesn't
include <sys/types.h>. The attached patch fixes that.

I also added it to the test program for AI_ADDRCONFIG, even though (a)
including stdio.h happens to pull in the necessary headers and (b)
OpenBSD doesn't have AI_ADDRCONFIG anyway.


diff --recursive -u inn-2.5.2/m4/socket.m4 ../inn-2.5.2/m4/socket.m4
--- inn-2.5.2/m4/socket.m4      Wed Mar 24 13:10:36 2010
+++ ../inn-2.5.2/m4/socket.m4   Mon Aug 23 20:09:14 2010
@@ -24,6 +24,7 @@
 AC_DEFUN([_INN_FUNC_GETADDRINFO_ADDRCONFIG_SOURCE], [[
 #include <netdb.h>
 #include <stdio.h>
+#include <sys/types.h>
 #include <sys/socket.h>

 int
@@ -135,6 +136,7 @@

 dnl Source used by INN_SYS_UNIX_SOCKETS.
 AC_DEFUN([_INN_SYS_UNIX_SOCKETS], [[
+#include <sys/types.h>
 #include <sys/socket.h>
 #ifndef AF_UNIX
 error:  No Unix domain sockets!



More information about the inn-workers mailing list