mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-12-27 05:21:08 +01:00
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:
parent
6ff4e7af7e
commit
99ff81767f
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=59756
@ -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)
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user