repo: ngircd
action: commit
revision: 
path_from: 
revision_from: e747fe92775f577a38f8dd681f7a58f751348f5e:
path_to: 
revision_to: 
git.thebackupbox.net
ngircd
git clone git://git.thebackupbox.net/ngircd
commit e747fe92775f577a38f8dd681f7a58f751348f5e
Author: Alexander Barton 
Date:   Fri Jan 17 16:18:55 2014 +0100

    Fix configure script and "make check" for TCP Wrappers

    Add missing #include's and static variables.

    Problem spotted on OpenBSD.

diff --git a/configure.ng b/configure.ng
index 7d22090780c77a781b88a7b7ef8432f5fa21d05f..
index ..aec1eb144f37898d367ef3f985013cdc2eda4265 100644
--- a/configure.ng
+++ b/configure.ng
@@ -470,6 +470,8 @@ AC_ARG_WITH(tcp-wrappers,
 			LIBS="-lwrap $LIBS"
 			LIBS_END="-lwrap $LIBS_END"
 			AC_LINK_IFELSE([AC_LANG_PROGRAM([[
+#include 
+#include 
 #include 
 int allow_severity = 0;
 int deny_severity = 0;
diff --git a/src/portab/portabtest.c b/src/portab/portabtest.c
index b104739e26b64c473c618873fd0d27eb97f0b5ed..
index ..3602feecf25819a882b7655a6cfba88bf2600322 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(char *Reason)
 {

-----END OF PAGE-----