Don't define _STANDALONE when building kernel modules.
_STANDALONE is only for the bootloader, not kernel modules. Remove it from the build. This was harmless before, but sys/malloc.h now does different things for the standalone environment, triggering the issue.
This commit is contained in:
parent
0aaa66cc79
commit
d9524c1232
@ -17,7 +17,7 @@ CFLAGS+= -fgnu89-inline
|
||||
|
||||
TARGET_ARCH = ${MACHINE_ARCH}
|
||||
.if ${TARGET_ARCH} == "amd64"
|
||||
CFLAGS+= -DCOMPAT_FREEBSD32 -D_STANDALONE
|
||||
CFLAGS+= -DCOMPAT_FREEBSD32
|
||||
.endif
|
||||
|
||||
clean_cscope:
|
||||
|
Loading…
x
Reference in New Issue
Block a user