summaryrefslogtreecommitdiffstats
path: root/sys/netgraph/netgraph.h
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>2000-04-29 13:36:07 +0000
committerpeter <peter@FreeBSD.org>2000-04-29 13:36:07 +0000
commit0caafaec1cb5acab175162f71bd744cfd5402e07 (patch)
tree51102256c4589102156a09506fb8e1fd0be1fd73 /sys/netgraph/netgraph.h
parentff69b85a830ca118614e0c953c0216d8ed90e24b (diff)
downloadFreeBSD-src-0caafaec1cb5acab175162f71bd744cfd5402e07.zip
FreeBSD-src-0caafaec1cb5acab175162f71bd744cfd5402e07.tar.gz
Minimal tweak to make the ng_XXX modules depend on netgraph so that they
see its symbols and link ok.
Diffstat (limited to 'sys/netgraph/netgraph.h')
-rw-r--r--sys/netgraph/netgraph.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/netgraph/netgraph.h b/sys/netgraph/netgraph.h
index fc7ca81..9c31d3c 100644
--- a/sys/netgraph/netgraph.h
+++ b/sys/netgraph/netgraph.h
@@ -243,7 +243,8 @@ static moduledata_t ng_##typename##_mod = { \
ng_mod_event, \
(typestructp) \
}; \
-DECLARE_MODULE(ng_##typename, ng_##typename##_mod, sub, order)
+DECLARE_MODULE(ng_##typename, ng_##typename##_mod, sub, order); \
+MODULE_DEPEND(ng_##typename, netgraph, 1, 1, 1)
#define NETGRAPH_INIT(tn, tp) \
NETGRAPH_INIT_ORDERED(tn, tp, SI_SUB_PSEUDO, SI_ORDER_ANY)
OpenPOWER on IntegriCloud