diff options
author | jkim <jkim@FreeBSD.org> | 2006-06-30 19:35:35 +0000 |
---|---|---|
committer | jkim <jkim@FreeBSD.org> | 2006-06-30 19:35:35 +0000 |
commit | b71b1778620637f678a2c8b593b6fc6f90aec1d7 (patch) | |
tree | ea1d16f00b5ff7dba5ee02646223ad46190fdb8f /sys/conf/kmod.mk | |
parent | 76a217bd1e55194c1c020183321755ece9f2e993 (diff) | |
download | FreeBSD-src-b71b1778620637f678a2c8b593b6fc6f90aec1d7.zip FreeBSD-src-b71b1778620637f678a2c8b593b6fc6f90aec1d7.tar.gz |
Fix kernel module build breakage.
Diffstat (limited to 'sys/conf/kmod.mk')
-rw-r--r-- | sys/conf/kmod.mk | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/conf/kmod.mk b/sys/conf/kmod.mk index 8267783..bba43e0 100644 --- a/sys/conf/kmod.mk +++ b/sys/conf/kmod.mk @@ -85,8 +85,10 @@ CFLAGS+= -DKLD_MODULE .if ${CC} == "icc" NOSTDINC= -X .else +C_DIALECT= -std=c99 NOSTDINC= -nostdinc .endif +CFLAGS+= ${C_DIALECT} CFLAGS:= ${CFLAGS:N-I*} ${NOSTDINC} -I- ${INCLMAGIC} ${CFLAGS:M-I*} .if defined(KERNBUILDDIR) CFLAGS+= -DHAVE_KERNEL_OPTION_HEADERS -include ${KERNBUILDDIR}/opt_global.h |