From owner-freebsd-hackers Mon Apr 14 14:12:38 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id OAA14600 for hackers-outgoing; Mon, 14 Apr 1997 14:12:38 -0700 (PDT) Received: from who.cdrom.com (who.cdrom.com [204.216.27.3]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id OAA14595 for ; Mon, 14 Apr 1997 14:12:36 -0700 (PDT) Received: from phaeton.artisoft.com (phaeton.Artisoft.COM [198.17.250.50]) by who.cdrom.com (8.8.5/8.6.11) with SMTP id OAA00793 for ; Mon, 14 Apr 1997 14:08:02 -0700 (PDT) Received: (from terry@localhost) by phaeton.artisoft.com (8.6.11/8.6.9) id NAA19277; Mon, 14 Apr 1997 13:37:14 -0700 From: Terry Lambert Message-Id: <199704142037.NAA19277@phaeton.artisoft.com> Subject: Re: detecting kernel version at compile time To: avalon@coombs.anu.edu.au (Darren Reed) Date: Mon, 14 Apr 1997 13:37:14 -0700 (MST) Cc: terry@lambert.org, hackers@freebsd.org In-Reply-To: <199704130204.TAA09799@freefall.freebsd.org> from "Darren Reed" at Apr 13, 97 11:58:00 am X-Mailer: ELM [version 2.4 PL24] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > > I do not use the __FreeBSD__ tag, personally. > > Okay, Terry, you don't use __FreeBSD__ and you don't use . > > 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.