From 111b9c7ab4217eecf52fabb0ca34175efbfe8e47 Mon Sep 17 00:00:00 2001 From: joerg Date: Sat, 21 Jun 2008 21:44:21 +0000 Subject: Use stdbool.h instead of defining bool manually. Fixes issues e.g. on NetBSD where bool is defined by system headers. --- net/snort/distinfo | 4 +++- net/snort/patches/patch-ag | 19 +++++++++++++++++++ net/snort/patches/patch-ah | 13 +++++++++++++ 3 files changed, 35 insertions(+), 1 deletion(-) create mode 100644 net/snort/patches/patch-ag create mode 100644 net/snort/patches/patch-ah (limited to 'net/snort') diff --git a/net/snort/distinfo b/net/snort/distinfo index 0a19c65f01e..e667dc6398d 100644 --- a/net/snort/distinfo +++ b/net/snort/distinfo @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.43 2008/05/25 23:49:07 adrianp Exp $ +$NetBSD: distinfo,v 1.44 2008/06/21 21:44:21 joerg Exp $ SHA1 (snort-2.8.1.tar.gz) = 1551ffc7bf60f5330304f3f222fa4f7c4929f5c5 RMD160 (snort-2.8.1.tar.gz) = cb7cc76c07abbfdddcb4b3a5b5fc39371faf0a0c @@ -9,3 +9,5 @@ SHA1 (patch-ac) = 6cdf26fcaeb8dad9cd9562b77377bd56b49c9f38 SHA1 (patch-ad) = d4bf1dee02af1f1730263a78a868bbdae5d8846d SHA1 (patch-ae) = ca74cfab6d9010d037a1e72e7c39b7982888c476 SHA1 (patch-af) = ce5129f0337514c9a2a9a482e2f1ed9a405112ec +SHA1 (patch-ag) = 1dfcb56284528b307f44d911f84f64832d907139 +SHA1 (patch-ah) = 1dee26c42c30e60be83a5e574183f2394d23e340 diff --git a/net/snort/patches/patch-ag b/net/snort/patches/patch-ag new file mode 100644 index 00000000000..2b336d11093 --- /dev/null +++ b/net/snort/patches/patch-ag @@ -0,0 +1,19 @@ +$NetBSD: patch-ag,v 1.1 2008/06/21 21:44:21 joerg Exp $ + +--- src/sfutil/sf_textlog.h.orig 2008-06-21 15:32:51.000000000 +0000 ++++ src/sfutil/sf_textlog.h +@@ -40,13 +40,13 @@ + #ifndef _SF_TEXT_LOG_H + #define _SF_TEXT_LOG_H + ++#include + #include + #include + #include + + #include "debug.h" /* for INLINE */ + +-typedef int bool; + #define TRUE 1 + #define FALSE 0 + diff --git a/net/snort/patches/patch-ah b/net/snort/patches/patch-ah new file mode 100644 index 00000000000..d83e2315f28 --- /dev/null +++ b/net/snort/patches/patch-ah @@ -0,0 +1,13 @@ +$NetBSD: patch-ah,v 1.1 2008/06/21 21:44:21 joerg Exp $ + +--- src/log_text.c.orig 2008-06-21 15:36:20.000000000 +0000 ++++ src/log_text.c +@@ -1244,7 +1244,7 @@ static void LogReference(TextLog* log, R + * + * Returns: void function + */ +-void LogXrefs(TextLog* log, int doNewLine) ++void LogXrefs(TextLog* log, bool doNewLine) + { + ReferenceNode *refNode = NULL; + -- cgit v1.2.3