Author: imp
Date: Thu Sep 24 07:10:34 2020
New Revision: 366104
URL: https://svnweb.freebsd.org/changeset/base/366104

Log:
  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.

Modified:
  head/sys/modules/mrsas/Makefile

Modified: head/sys/modules/mrsas/Makefile
==============================================================================
--- head/sys/modules/mrsas/Makefile     Thu Sep 24 07:07:54 2020        
(r366103)
+++ head/sys/modules/mrsas/Makefile     Thu Sep 24 07:10:34 2020        
(r366104)
@@ -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:
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to