From owner-freebsd-hackers Mon Mar 31 04:53:25 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id EAA16010 for hackers-outgoing; Mon, 31 Mar 1997 04:53:25 -0800 (PST) Received: from sax.sax.de (sax.sax.de [193.175.26.33]) by freefall.freebsd.org (8.8.5/8.8.5) with SMTP id EAA16001 for ; Mon, 31 Mar 1997 04:53:22 -0800 (PST) Received: (from uucp@localhost) by sax.sax.de (8.6.12/8.6.12-s1) with UUCP id OAA10851; Mon, 31 Mar 1997 14:52:36 +0200 Received: (from j@localhost) by uriah.heep.sax.de (8.8.5/8.8.5) id OAA10440; Mon, 31 Mar 1997 14:22:39 +0200 (MET DST) Message-ID: <19970331142239.UY50152@uriah.heep.sax.de> Date: Mon, 31 Mar 1997 14:22:39 +0200 From: j@uriah.heep.sax.de (J Wunsch) To: hackers@freebsd.org Cc: archie@whistle.com (Archie Cobbs) Subject: Re: Telling 2.2 from 3.0 (fwd) References: X-Mailer: Mutt 0.60_p2-3,5,8-9 Mime-Version: 1.0 X-Phone: +49-351-2012 669 X-PGP-Fingerprint: DC 47 E6 E4 FF A6 E9 8F 93 21 E0 7D F9 12 D6 4E Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch) In-Reply-To: ; from Doug White on Mar 31, 1997 02:50:00 -0800 Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk As Doug White wrote: > What is the "correct" way to tell which version of FreeBSD you're > building on using #ifdef's in your C source code? #include #if __FreeBSD_version >= 300000 #include #endif -- 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. ;-)