inn's configure script on openbsd

Julien ÉLIE julien at trigofacile.com
Tue Aug 24 08:30:52 UTC 2010


Hi Wim,

Note to Russ:  the issue also affects rra-c-util-2.5.


> 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.

Thanks!
Your patch will be included in INN 2.5.3.


> 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.

Shouldn't these other files also be patched?

--- m4/sendfd.m4        (révision 9083)
+++ m4/sendfd.m4        (copie de travail)
@@ -14,6 +14,7 @@
 # include <string.h>
 #endif
 #include <stropts.h>
+#include <sys/types.h>
 #include <sys/socket.h>
 #if HAVE_UNISTD_H
 # include <unistd.h>



--- include/portable/getnameinfo.h      (révision 9083)
+++ include/portable/getnameinfo.h      (copie de travail)
@@ -22,8 +22,8 @@
 /* Skip this entire file if a system getaddrinfo was detected. */
 #if !HAVE_GETNAMEINFO

+#include <sys/types.h>
 #include <sys/socket.h>
-#include <sys/types.h>

 /* Constants for flags from RFC 3493, combined with binary or. */
 #define NI_NOFQDN       0x0001



--- include/portable/getaddrinfo.h      (révision 9083)
+++ include/portable/getaddrinfo.h      (copie de travail)
@@ -22,8 +22,8 @@
 /* Skip this entire file if a system getaddrinfo was detected. */
 #if !HAVE_GETADDRINFO

+#include <sys/types.h>
 #include <sys/socket.h>
-#include <sys/types.h>

 /* The struct returned by getaddrinfo, from RFC 3493. */
 struct addrinfo {

-- 
Julien ÉLIE

« -- Cet homme qui est sorti du palais, nous renseignera peut-être
  sur la façon d'y entrer. Suivons-le.
  -- Mais... Il sait sortir d'accord, mais rien ne prouve qu'il
  sache entrer, et... » (Astérix) 




More information about the inn-workers mailing list