[syslog-ng]syslog-ng minor tcp-wrappers bug

Ed Ravin syslog-ng@lists.balabit.hu
Thu, 23 Oct 2003 18:04:33 -0400


test_nscache.c refuses to build on NetBSD 1.5 if --enable-tcp-wrapper is
set.  The patch below fixes the problem.  I don't know if test_nscache
actually works since I'm not clear on what it does and I've always
lived without it in the past, but at least with the patch applied I
don't get error messages (undefined reference allow_severity &
deny_severity) when I run "make".

diff -u -r1.1 test_nscache.c
--- test_nscache.c      2003/10/23 21:50:13     1.1
+++ test_nscache.c      2003/10/23 21:50:16
@@ -2,6 +2,12 @@
 #include "nscache.h"
 #include <stdio.h>

+#if ENABLE_TCP_WRAPPER
+#include <tcpd.h>
+int allow_severity = 0;
+int deny_severity = 0;
+#endif
+
 int main()
 {
   struct in_addr in;