pkgsrc/sysutils/pftop/patches/patch-ac
joerg a6bc643599 Fix compilation on DragonFly: MIN is not defined, UID_MAX / GID_MAX
can be obtained from limits.h and RB_PROTOTYPE is needed before
RB_GENERATE.
2005-12-07 14:32:07 +00:00

12 lines
401 B
Text

$NetBSD: patch-ac,v 1.1 2005/12/07 14:32:07 joerg Exp $
--- cache.c.orig 2005-12-07 14:21:26.000000000 +0000
+++ cache.c
@@ -54,6 +54,7 @@ static __inline int sc_cmp(struct sc_ent
/* initialize the tree and queue */
RB_HEAD(sc_tree, sc_ent) sctree;
+RB_PROTOTYPE(sc_tree, sc_ent, tlink, sc_cmp);
TAILQ_HEAD(sc_queue, sc_ent) scq1, scq2, scq_free;
RB_GENERATE(sc_tree, sc_ent, tlink, sc_cmp);