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
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=366104
@ -17,7 +17,7 @@ CFLAGS+= -fgnu89-inline
|
|||||||
|
|
||||||
TARGET_ARCH = ${MACHINE_ARCH}
|
TARGET_ARCH = ${MACHINE_ARCH}
|
||||||
.if ${TARGET_ARCH} == "amd64"
|
.if ${TARGET_ARCH} == "amd64"
|
||||||
CFLAGS+= -DCOMPAT_FREEBSD32 -D_STANDALONE
|
CFLAGS+= -DCOMPAT_FREEBSD32
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
clean_cscope:
|
clean_cscope:
|
||||||
|
Loading…
Reference in New Issue
Block a user