Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 14 Apr 1997 13:37:14 -0700 (MST)
From:      Terry Lambert <terry@lambert.org>
To:        avalon@coombs.anu.edu.au (Darren Reed)
Cc:        terry@lambert.org, hackers@freebsd.org
Subject:   Re: detecting kernel version at compile time
Message-ID:  <199704142037.NAA19277@phaeton.artisoft.com>
In-Reply-To: <199704130204.TAA09799@freefall.freebsd.org> from "Darren Reed" at Apr 13, 97 11:58:00 am

next in thread | previous in thread | raw e-mail | index | archive | help
> > I do not use the __FreeBSD__ tag, personally.
> 
> Okay, Terry, you don't use __FreeBSD__ and you don't use <osreldate.h>.
> 
> How do you write code that compiles & runs on FreeBSD 2.1.6 ->
> FreeBSD-current ?
> 
> More importantly, how do you write kernel code for the same set of versions
> without having n different source files ?


By not writing code which depends on features which are different
between the two releases, of course: if you limit the number of
system interfaces you consume, you must, inevitably, also limit
the amount of damage that a change to a single system interface
is capable of causing.


					Regards,
					Terry Lambert
					terry@lambert.org
---
Any opinions in this posting are my own and not those of my present
or previous employers.




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