Fix i386 MINIMAL build
Include systm.h in i386's counter.h, so it can use critical_*(). In file included from /usr/src/sys/netinet6/ip6_var.h:250: In file included from /usr/src/sys/sys/counter.h:37: ./machine/counter.h:191:3: error: call to undeclared function 'critical_enter'; ISO C99 and later do not support implicit function declarations [-Werror,-Wimplicit-function-declaration] critical_enter(); ^ ./machine/counter.h:193:3: error: call to undeclared function 'critical_exit'; ISO C99 and later do not support implicit function declarations [-Werror,-Wimplicit-function-declaration] critical_exit(); ^
This commit is contained in:
parent
b8039bf5b3
commit
f53b28c6df
@ -35,6 +35,7 @@
|
||||
#ifdef INVARIANTS
|
||||
#include <sys/proc.h>
|
||||
#endif
|
||||
#include <sys/systm.h>
|
||||
#include <machine/md_var.h>
|
||||
#include <machine/specialreg.h>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user