summaryrefslogtreecommitdiff
path: root/net/snort/patches/patch-aa
diff options
context:
space:
mode:
Diffstat (limited to 'net/snort/patches/patch-aa')
-rw-r--r--net/snort/patches/patch-aa16
1 files changed, 8 insertions, 8 deletions
diff --git a/net/snort/patches/patch-aa b/net/snort/patches/patch-aa
index eaf713ae824..93826cf886f 100644
--- a/net/snort/patches/patch-aa
+++ b/net/snort/patches/patch-aa
@@ -1,20 +1,19 @@
-$NetBSD: patch-aa,v 1.15 2007/08/20 20:28:18 adrianp Exp $
+$NetBSD: patch-aa,v 1.16 2007/10/21 00:22:53 adrianp Exp $
---- src/snort.c.orig 2007-07-26 21:07:18.000000000 +0100
+--- src/snort.c.orig 2007-09-07 19:01:56.000000000 +0100
+++ src/snort.c
-@@ -150,7 +150,6 @@ extern OutputFuncNode *LogList;
- long start_time; /* tracks how many seconds snort actually ran */
+@@ -158,7 +158,6 @@ extern OutputFuncNode *LogList;
+ time_t start_time; /* tracks how many seconds snort actually ran */
#endif
-extern int errno;
/* exported variables *********************************************************/
u_int8_t runMode = 0; /* snort run mode */
-@@ -2656,7 +2655,18 @@ int SetPktProcessor(void)
- grinder = DecodeSlipPkt;
+@@ -3194,6 +3193,19 @@ int SetPktProcessor(void)
break;
--
+
+#if defined(__NetBSD__)
+# if defined(__NetBSD_Version__)
+# if (__NetBSD_Version__ >= 105000000)
@@ -27,10 +26,11 @@ $NetBSD: patch-aa,v 1.15 2007/08/20 20:28:18 adrianp Exp $
+ /* no __NetBSD_Version__ on <1.4 */
+# endif /* __NetBSD_Version__ */
+#endif /* NetBSD */
++
case DLT_PPP: /* point-to-point protocol */
if(!pv.readmode_flag)
{
-@@ -3210,7 +3220,7 @@ static char *ConfigFileSearch()
+@@ -3743,7 +3755,7 @@ static char *ConfigFileSearch()
{
struct stat st;
int i;