a6bc643599
can be obtained from limits.h and RB_PROTOTYPE is needed before RB_GENERATE.
12 lines
401 B
Text
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);
|
|
|