diff options
author | peter <peter@FreeBSD.org> | 2001-02-18 20:44:06 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 2001-02-18 20:44:06 +0000 |
commit | 9a1ce7893acf3ee24cf62e2bfbf71cd8f366daab (patch) | |
tree | ef0f0e92929a06b4fa09453936a2f398572126f3 | |
parent | 0d7f774a55ee467d46723265555ec69823265a49 (diff) | |
download | FreeBSD-src-9a1ce7893acf3ee24cf62e2bfbf71cd8f366daab.zip FreeBSD-src-9a1ce7893acf3ee24cf62e2bfbf71cd8f366daab.tar.gz |
Be extra certain that "#include <osreldate.h>" must not be used in
kernel code.
-rw-r--r-- | include/Makefile | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/include/Makefile b/include/Makefile index db99f9c..1b2ac62 100644 --- a/include/Makefile +++ b/include/Makefile @@ -68,8 +68,12 @@ osreldate.h: ${.CURDIR}/../sys/conf/newvers.sh \ setvar PARAMFILE ${.CURDIR}/../sys/sys/param.h; \ . ${.CURDIR}/../sys/conf/newvers.sh; \ echo "$$COPYRIGHT" > osreldate.h; \ + echo "#ifdef _KERNEL" >> osreldate.h; \ + echo '#error "osreldate.h must not be used in the kernel, use sys/param.h"' >> osreldate.h; \ + echo "#else" >> osreldate.h; \ echo \#'undef __FreeBSD_version' >> osreldate.h; \ - echo \#'define __FreeBSD_version' $$RELDATE >> osreldate.h + echo \#'define __FreeBSD_version' $$RELDATE >> osreldate.h; \ + echo "#endif" >> osreldate.h beforeinstall: ${SHARED} @rm -f ${DESTDIR}/usr/include/timepps.h |