mirror of
https://github.com/Stichting-MINIX-Research-Foundation/pkgsrc-ng.git
synced 2025-08-03 09:48:00 -04:00
25 lines
640 B
Plaintext
25 lines
640 B
Plaintext
$NetBSD: patch-aa,v 1.2 2004/01/15 14:10:51 cube Exp $
|
|
|
|
--- mod.c.orig 2002-04-08 00:55:20.000000000 +0200
|
|
+++ mod.c
|
|
@@ -151,10 +151,19 @@ mod_close(void)
|
|
{
|
|
struct rule *rule;
|
|
|
|
+#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);
|
|
+ TAILQ_REMOVE(&rules, rule, next);
|
|
+ free(rule);
|
|
+ }
|
|
+#else
|
|
TAILQ_FOREACH_REVERSE(rule, &rules, next, head) {
|
|
if (rule->mod->close != NULL)
|
|
rule->data = rule->mod->close(rule->data);
|
|
TAILQ_REMOVE(&rules, rule, next);
|
|
free(rule);
|
|
}
|
|
+#endif
|
|
}
|