summaryrefslogtreecommitdiffstats
path: root/share/mk/bsd.sys.mk
diff options
context:
space:
mode:
authorru <ru@FreeBSD.org>2002-04-07 17:03:06 +0000
committerru <ru@FreeBSD.org>2002-04-07 17:03:06 +0000
commitb42f3eadf7529784faad37d3d21b13a73be07d51 (patch)
treefcdab1ef5806ebe2fc1ef2dfe9bfe834762c6522 /share/mk/bsd.sys.mk
parent966acab3105b225d566e0fca69a21475119276c3 (diff)
downloadFreeBSD-src-b42f3eadf7529784faad37d3d21b13a73be07d51.zip
FreeBSD-src-b42f3eadf7529784faad37d3d21b13a73be07d51.tar.gz
FreeBSD prior to 4.5-RELEASE and older versions of 5.0-CURRENT do not
have the __FBSDID() macro in <sys/cdefs.h>. Fix this once and for all for tools that need to be bootstrapped. PR: bin/36747 MFC after: 3 days Prodded by: obrien
Diffstat (limited to 'share/mk/bsd.sys.mk')
-rw-r--r--share/mk/bsd.sys.mk5
1 files changed, 5 insertions, 0 deletions
diff --git a/share/mk/bsd.sys.mk b/share/mk/bsd.sys.mk
index ea0abc0..eb5f12d 100644
--- a/share/mk/bsd.sys.mk
+++ b/share/mk/bsd.sys.mk
@@ -44,3 +44,8 @@ CFLAGS += -Werror
# Allow user-specified additional warning flags
CFLAGS += ${CWARNFLAGS}
+
+# FreeBSD prior to 4.5 didn't have the __FBSDID() macro in <sys/cdefs.h>.
+.if defined(BOOTSTRAPPING)
+CFLAGS+= -D__FBSDID=__RCSID
+.endif
OpenPOWER on IntegriCloud