From bb3096b0d3318bea42b5b0d3aa5788f4bdf0893f Mon Sep 17 00:00:00 2001 From: Alexander Barton Date: Fri, 17 Jan 2014 16:18:55 +0100 Subject: [PATCH 1/1] Fix configure script and "make check" for TCP Wrappers Add missing #include's and static variables. Problem spotted on OpenBSD. (cherry picked from commit e747fe92775f577a38f8dd681f7a58f751348f5e) Conflicts: configure.ng src/portab/portabtest.c --- configure.ng | 2 ++ src/portab/portabtest.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/configure.ng b/configure.ng index 8f4585a7..f6d83468 100644 --- a/configure.ng +++ b/configure.ng @@ -467,6 +467,8 @@ AC_ARG_WITH(tcp-wrappers, LIBS="-lwrap $LIBS" LIBS_END="-lwrap $LIBS_END" AC_TRY_LINK([ +#include +#include #include int allow_severity = 0; int deny_severity = 0; diff --git a/src/portab/portabtest.c b/src/portab/portabtest.c index 09afbfd1..b55ff979 100644 --- a/src/portab/portabtest.c +++ b/src/portab/portabtest.c @@ -24,6 +24,8 @@ #include "exp.h" +int allow_severity = 0, deny_severity = 0; + static void Panic PARAMS (( char *Reason, int Code )); -- 2.39.2