- DECLARE_MODULE needs SYSINIT -> include sys/kernel.h
- modeventhand_t declares a pointer to a function, so it can't be used as a forward declaration (d'oh!) Submitted by: Harti Brandt <brandt@fokus.gmd.de>
This commit is contained in:
parent
01f491fa8e
commit
12829b5fd8
@ -64,8 +64,10 @@ contains the value of
|
||||
.Bd -literal
|
||||
#include <sys/param.h>
|
||||
#include <sys/module.h>
|
||||
#include <sys/kernel.h>
|
||||
|
||||
modeventhand_t foo_handler;
|
||||
static int foo_handler(module_t mod, int /*modeventtype_t*/ what,
|
||||
void *arg);
|
||||
|
||||
static moduledata_t mod_data= {
|
||||
"foo",
|
||||
|
Loading…
x
Reference in New Issue
Block a user