In file included from panic.c:5:
/usr/include/sys/kernel.h:373: error: expected specifier-qualifier-list before 'TAILQ_ENTRY'
In file included from panic.c:7:
/usr/include/sys/systm.h:240: error: expected declaration specifiers or '...' before 'uintfptr_t'
/usr/include/sys/systm.h:246: error: expected declaration specifiers or '...' before 'uintfptr_t'
In file included from panic.c:7:
/usr/include/sys/systm.h:312: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'splbio'
/usr/include/sys/systm.h:313: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'splcam'
/usr/include/sys/systm.h:314: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'splclock'
/usr/include/sys/systm.h:315: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'splhigh'
/usr/include/sys/systm.h:316: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'splimp'
/usr/include/sys/systm.h:317: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'splnet'
/usr/include/sys/systm.h:318: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'splsoftcam'
/usr/include/sys/systm.h:319: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'splsoftclock'
/usr/include/sys/systm.h:320: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'splsofttty'
/usr/include/sys/systm.h:321: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'splsoftvm'
/usr/include/sys/systm.h:322: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'splsofttq'
/usr/include/sys/systm.h:323: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'splstatclock'
/usr/include/sys/systm.h:324: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'spltty'
/usr/include/sys/systm.h:325: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'splvm'
/usr/include/sys/systm.h:326: error: expected ')' before 'ipl'
panic.c: In function 'panicEventHandler':
panic.c:30: error: 'EOPNOTSUPP' undeclared (first use in this function)
panic.c:30: error: (Each undeclared identifier is reported only once
panic.c:30: error: for each function it appears in.)
panic.c: At top level:
panic.c:51: warning: data definition has no type or storage class
panic.c:51: warning: parameter names (without types) in function declaration
panic.c:57: warning: data definition has no type or storage class
panic.c:57: error: 'panicBin' undeclared here (not in a function)
panic.c:58: error: expected ',' or ';' before 'SRCS'