From 7cf143f761dcdb4a335a9d44cbc49a5421c7a087 Mon Sep 17 00:00:00 2001 From: Ruslan Ermilov Date: Sun, 7 Apr 2002 17:03:06 +0000 Subject: [PATCH] FreeBSD prior to 4.5-RELEASE and older versions of 5.0-CURRENT do not have the __FBSDID() macro in . Fix this once and for all for tools that need to be bootstrapped. PR: bin/36747 MFC after: 3 days Prodded by: obrien --- share/mk/bsd.sys.mk | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/share/mk/bsd.sys.mk b/share/mk/bsd.sys.mk index ea0abc074b81..eb5f12d6e43c 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 . +.if defined(BOOTSTRAPPING) +CFLAGS+= -D__FBSDID=__RCSID +.endif