From owner-freebsd-ports Tue Jan 9 22:52:43 1996 Return-Path: owner-ports Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id WAA15048 for ports-outgoing; Tue, 9 Jan 1996 22:52:43 -0800 (PST) Received: from irz301.inf.tu-dresden.de (irz301.inf.tu-dresden.de [141.76.1.11]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id WAA15026 for ; Tue, 9 Jan 1996 22:52:29 -0800 (PST) Received: from sax.sax.de by irz301.inf.tu-dresden.de (8.6.12/8.6.12-s1) with ESMTP id HAA02020; Wed, 10 Jan 1996 07:52:25 +0100 Received: by sax.sax.de (8.6.11/8.6.12-s1) with UUCP id HAA27227; Wed, 10 Jan 1996 07:52:25 +0100 Received: (from j@localhost) by uriah.heep.sax.de (8.7.3/8.6.9) id HAA05265; Wed, 10 Jan 1996 07:46:15 +0100 (MET) From: J Wunsch Message-Id: <199601100646.HAA05265@uriah.heep.sax.de> Subject: Re: Differentiating between 2.0 and 2.1 To: dglo@SSEC.WISC.EDU (Dave Glowacki) Date: Wed, 10 Jan 1996 07:46:14 +0100 (MET) Cc: ports@FreeBSD.org Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch) In-Reply-To: <199601100205.UAA03363@tick.SSEC.WISC.EDU> from "Dave Glowacki" at Jan 9, 96 08:05:56 pm X-Phone: +49-351-2012 669 X-Mailer: ELM [version 2.4 PL23] MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Sender: owner-ports@FreeBSD.org Precedence: bulk As Dave Glowacki wrote: > > OK, I can determine that I'm on a FreeBSD system if __FreeBSD__ is defined > and I can tell that I'm on a FreeBSD 2.x system if __FreeBSD__ == 2. > > Is there a way to determine if a program is being built on a FreeBSD 2.1 > system as opposed to a 2.0 system? #if __FreeBSD__ >= 2 #include __FreeBSD_version was: 2.0R: 199411 2.1-current's: 199501, 199503 2.0.5R: 199504 2.1R: 199511 2.2-current before 2.1: 199508 2.2-current as of today: 199512 (will certainly be bumped) (Can please somebody record this in the handbook? I've extracted it out of the CVS files.) -- cheers, J"org joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE Never trust an operating system you don't have sources for. ;-)