summaryrefslogtreecommitdiff
path: root/security/fragroute/patches
diff options
context:
space:
mode:
authorcube <cube>2004-01-15 14:10:51 +0000
committercube <cube>2004-01-15 14:10:51 +0000
commit8f510816e902893c8672f13ee8f56f1b388bbad0 (patch)
treec2dce198aef013bbc829432e8ad4ce01b0c761f0 /security/fragroute/patches
parent397a4401f72bfbb3eef1d7850c0f5c5ee7cdc57e (diff)
downloadpkgsrc-8f510816e902893c8672f13ee8f56f1b388bbad0.tar.gz
No patches are needed for that package, except for -current between Sept.,
16th 2003 and Jan., 6th 2004 when <sys/siginfo.h> included <sys/queue.h> unconditionally. Rework the patches so that they're used only in that case.
Diffstat (limited to 'security/fragroute/patches')
-rw-r--r--security/fragroute/patches/patch-aa10
-rw-r--r--security/fragroute/patches/patch-ac17
2 files changed, 22 insertions, 5 deletions
diff --git a/security/fragroute/patches/patch-aa b/security/fragroute/patches/patch-aa
index c7f2293746d..7c5c08fb99b 100644
--- a/security/fragroute/patches/patch-aa
+++ b/security/fragroute/patches/patch-aa
@@ -1,12 +1,12 @@
-$NetBSD: patch-aa,v 1.1.1.1 2004/01/08 17:55:15 agc Exp $
+$NetBSD: patch-aa,v 1.2 2004/01/15 14:10:51 cube Exp $
---- mod.c 2004/01/08 17:33:51 1.1
-+++ mod.c 2004/01/08 17:41:16
-@@ -151,10 +151,19 @@
+--- mod.c.orig 2002-04-08 00:55:20.000000000 +0200
++++ mod.c
+@@ -151,10 +151,19 @@ mod_close(void)
{
struct rule *rule;
-+#ifdef __NetBSD__
++#if defined(FRAGROUTE_SYSTEM_SYS_QUEUE) && defined(__NetBSD__)
+ TAILQ_FOREACH_REVERSE(rule, &rules, head, next) {
+ if (rule->mod->close != NULL)
+ rule->data = rule->mod->close(rule->data);
diff --git a/security/fragroute/patches/patch-ac b/security/fragroute/patches/patch-ac
new file mode 100644
index 00000000000..a56e6db0023
--- /dev/null
+++ b/security/fragroute/patches/patch-ac
@@ -0,0 +1,17 @@
+$NetBSD: patch-ac,v 1.1 2004/01/15 14:10:51 cube Exp $
+
+--- queue.h.orig 2002-04-07 23:12:52.000000000 +0200
++++ queue.h
+@@ -500,4 +500,12 @@ struct { \
+ (elm2)->field.cqe_prev->field.cqe_next = (elm2); \
+ } while (0)
+
++#else
++
++#define FRAGROUTE_SYSTEM_SYS_QUEUE
++
++#ifndef TAILQ_END
++#define TAILQ_END(head) NULL
++#endif
++
+ #endif /* !_SYS_QUEUE_H_ */