Fix configure script and "make check" for TCP Wrappers
authorAlexander Barton <alex@barton.de>
Fri, 17 Jan 2014 15:18:55 +0000 (16:18 +0100)
committerAlexander Barton <alex@barton.de>
Fri, 17 Jan 2014 15:18:55 +0000 (16:18 +0100)
Add missing #include's and static variables.

Problem spotted on OpenBSD.

configure.ng
src/portab/portabtest.c

index 7d22090780c77a781b88a7b7ef8432f5fa21d05f..aec1eb144f37898d367ef3f985013cdc2eda4265 100644 (file)
@@ -470,6 +470,8 @@ AC_ARG_WITH(tcp-wrappers,
                        LIBS="-lwrap $LIBS"
                        LIBS_END="-lwrap $LIBS_END"
                        AC_LINK_IFELSE([AC_LANG_PROGRAM([[
                        LIBS="-lwrap $LIBS"
                        LIBS_END="-lwrap $LIBS_END"
                        AC_LINK_IFELSE([AC_LANG_PROGRAM([[
+#include <sys/types.h>
+#include <sys/socket.h>
 #include <tcpd.h>
 int allow_severity = 0;
 int deny_severity = 0;
 #include <tcpd.h>
 int allow_severity = 0;
 int deny_severity = 0;
index b104739e26b64c473c618873fd0d27eb97f0b5ed..3602feecf25819a882b7655a6cfba88bf2600322 100644 (file)
@@ -24,6 +24,8 @@
 
 #include "exp.h"
 
 
 #include "exp.h"
 
+int allow_severity = 0, deny_severity = 0;
+
 static void
 Panic(char *Reason)
 {
 static void
 Panic(char *Reason)
 {