]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
tcpwrap: Added allow/deny severity to fix compiling on some systems.
authorTimo Sirainen <tss@iki.fi>
Tue, 16 Mar 2010 15:13:50 +0000 (17:13 +0200)
committerTimo Sirainen <tss@iki.fi>
Tue, 16 Mar 2010 15:13:50 +0000 (17:13 +0200)
Patch by Tomi Vainio

--HG--
branch : HEAD

src/util/tcpwrap.c

index e6d0a7ec1efadb1f95902d81f9aee138a10103f4..b1d3d8db632b5ad6bf9a5bd8357c96113545f673 100644 (file)
@@ -9,6 +9,7 @@
 
 #include <stdlib.h>
 #include <unistd.h>
+#include <syslog.h>
 #include <tcpd.h>
 
 struct tcpwrap_client {
@@ -19,6 +20,10 @@ struct tcpwrap_client {
 
 #define INPUT_TIMEOUT_MSECS (1000*10)
 
+/* for tcpwrap library */
+int allow_severity = LOG_INFO;
+int deny_severity = LOG_WARNING;
+
 static struct tcpwrap_client *tcpwrap_client = NULL;
 
 static void tcpwrap_client_destroy(struct tcpwrap_client **client);