Minimal tweak to make the ng_XXX modules depend on netgraph so that they

see its symbols and link ok.
This commit is contained in:
Peter Wemm 2000-04-29 13:36:07 +00:00
parent 6ff4e7af7e
commit 99ff81767f
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=59756
2 changed files with 4 additions and 1 deletions

View File

@ -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)

View File

@ -63,6 +63,8 @@
#include <netgraph/netgraph.h>
#include <netgraph/ng_parse.h>
MODULE_VERSION(netgraph, 1);
/* List of all nodes */
static LIST_HEAD(, ng_node) nodelist;