Don't append extra _H in forward headers' guardian, since
authorSepherosa Ziehau <sephe@dragonflybsd.org>
Sun, 19 Nov 2006 14:36:53 +0000 (14:36 +0000)
committerSepherosa Ziehau <sephe@dragonflybsd.org>
Sun, 19 Nov 2006 14:36:53 +0000 (14:36 +0000)
sys/cpu/i386/misc/atomic.c depends on *exact* _MACHINE_ATMOIC_H_ to
create necessary atomic_*_*() symbols for modules to use.

sys/conf/kern.fwd.mk

index 903e50b..44cd5d7 100644 (file)
@@ -1,4 +1,4 @@
-# $DragonFly: src/sys/conf/kern.fwd.mk,v 1.1 2006/11/19 07:49:34 sephe Exp $
+# $DragonFly: src/sys/conf/kern.fwd.mk,v 1.2 2006/11/19 14:36:53 sephe Exp $
 
 # Create forwarding headers for ${SYSDIR}/cpu/${MACHINE_ARCH}/*.h in
 # ${_MACHINE_FWD}/include/machine and share the directory among module build
@@ -27,8 +27,8 @@ ${_FWDHDRS}:
        echo " * CONFIG-GENERATED FILE, DO NOT EDIT" ; \
        echo " */" ; \
        echo ; \
-       echo "#ifndef _MACHINE_${.TARGET:T:S/./_/g:U:R}_H_" ; \
-       echo "#define _MACHINE_${.TARGET:T:S/./_/g:U:R}_H_" ; \
+       echo "#ifndef _MACHINE_${.TARGET:T:S/./_/g:U:R}_" ; \
+       echo "#define _MACHINE_${.TARGET:T:S/./_/g:U:R}_" ; \
        echo "#include <cpu/${.TARGET:T}>" ; \
        echo "#endif" ; \
        echo) > ${.TARGET}