diff options
author | ru <ru@FreeBSD.org> | 2002-04-07 17:03:06 +0000 |
---|---|---|
committer | ru <ru@FreeBSD.org> | 2002-04-07 17:03:06 +0000 |
commit | b42f3eadf7529784faad37d3d21b13a73be07d51 (patch) | |
tree | fcdab1ef5806ebe2fc1ef2dfe9bfe834762c6522 | |
parent | 966acab3105b225d566e0fca69a21475119276c3 (diff) | |
download | FreeBSD-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
-rw-r--r-- | share/mk/bsd.sys.mk | 5 |
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 |