- 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:
Alexander Langer 2001-03-23 14:05:05 +00:00
parent 01f491fa8e
commit 12829b5fd8

View File

@ -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",