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:
Warner Losh 2020-09-24 07:10:34 +00:00
parent 0aaa66cc79
commit d9524c1232
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=366104

View File

@ -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: