Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 28 Oct 2000 14:46:04 +0200
From:      Jeroen Ruigrok van der Werven <jruigrok@via-net-works.nl>
To:        Bruce Evans <bde@zeta.org.au>
Cc:        Poul-Henning Kamp <phk@critter.freebsd.dk>, "David O'Brien" <obrien@FreeBSD.org>, cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   Re: cvs commit: src/sys/netinet ip_compat.h
Message-ID:  <20001028144604.C23712@lucifer.bart.nl>
In-Reply-To: <Pine.BSF.4.21.0010281815200.49650-100000@besplex.bde.org>; from bde@zeta.org.au on Sat, Oct 28, 2000 at 06:17:44PM %2B1100
References:  <19851.972715787@critter> <Pine.BSF.4.21.0010281815200.49650-100000@besplex.bde.org>

next in thread | previous in thread | raw e-mail | index | archive | help

--CE+1k2dSO48ffgeK
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

-On [20001028 09:25], Bruce Evans (bde@zeta.org.au) wrote:
>Except, in certain broken build environments, it is present.

Would extending the creation part of the make includes for osreldate.h
to include this help? [see attached patch]

-- 
Jeroen Ruigrok van der Werven          Network- and systemadministrator
<jruigrok@via-net-works.nl>            VIA Net.Works The Netherlands
BSD: Technical excellence at its best  http://www.via-net-works.nl
He who can, does.  He who cannot, teaches...

--CE+1k2dSO48ffgeK
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="Makefile.diff"

Index: src/include/Makefile
===================================================================
RCS file: /home/ncvs/src/include/Makefile,v
retrieving revision 1.125
diff -u -r1.125 Makefile
--- src/include/Makefile	2000/10/16 07:00:18	1.125
+++ src/include/Makefile	2000/10/28 12:37:47
@@ -68,7 +68,11 @@
 	. ${.CURDIR}/../sys/conf/newvers.sh;			\
 	echo "$$COPYRIGHT" > osreldate.h;			\
 	echo \#'undef __FreeBSD_version' >> osreldate.h;	\
-	echo \#'define __FreeBSD_version' $$RELDATE >> osreldate.h
+	echo \#'define __FreeBSD_version' $$RELDATE >> osreldate.h; \
+	echo >> osreldate.h; \
+	echo \#'ifdef _KERNEL' >> osreldate.h; \
+	echo \#'error "Do not include osreldate.h in kernelspace"' >> osreldate.h; \
+	echo \#'endif' >> osreldate.h
 
 beforeinstall: ${SHARED}
 	@rm -f ${DESTDIR}/usr/include/timepps.h

--CE+1k2dSO48ffgeK--


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20001028144604.C23712>