Skip site navigation (1)Skip section navigation (2)
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)
Message-ID:  <19970331142239.UY50152@uriah.heep.sax.de>
In-Reply-To: <Pine.BSI.3.94.970331024930.397L-100000@localhost>; from Doug White on Mar 31, 1997 02:50:00 -0800
References:  <Pine.BSI.3.94.970331024930.397L-100000@localhost>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <osreldate.h>

#if __FreeBSD_version >= 300000
#include <net/if_var.h>
#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. ;-)



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