Skip to content

Commit

Permalink
kmod.mk includes bsd.sys.mk anyway so use CSTD instead of homegrown
Browse files Browse the repository at this point in the history
reimplementation of the same. Note that this changes -std=c99
to -std=iso9899:1999 but those two are synonyms.

Approved by:	kib (mentor)
Reviewed by:	ru
  • Loading branch information
rdivacky committed Jan 26, 2009
1 parent 8e700fb commit 1597a61
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions sys/conf/kmod.mk
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,9 @@ CFLAGS+= -DKLD_MODULE
.if ${CC} == "icc"
NOSTDINC= -X
.else
C_DIALECT= -std=c99
CSTD= c99
NOSTDINC= -nostdinc
.endif
CFLAGS+= ${C_DIALECT}
CFLAGS:= ${CFLAGS:N-I*} ${NOSTDINC} ${INCLMAGIC} ${CFLAGS:M-I*}
.if defined(KERNBUILDDIR)
CFLAGS+= -DHAVE_KERNEL_OPTION_HEADERS -include ${KERNBUILDDIR}/opt_global.h
Expand Down

0 comments on commit 1597a61

Please sign in to comment.