Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 31 Mar 1997 23:37:32 +1000 (EST)
From:      Darren Reed <avalon@coombs.anu.edu.au>
To:        joerg_wunsch@uriah.heep.sax.de
Cc:        hackers@freebsd.org, archie@whistle.com
Subject:   Re: Telling 2.2 from 3.0 (fwd)
Message-ID:  <199703311342.FAA18048@freefall.freebsd.org>
In-Reply-To: <19970331142239.UY50152@uriah.heep.sax.de> from "J Wunsch" at Mar 31, 97 02:22:39 pm

next in thread | previous in thread | raw e-mail | index | archive | help
In some mail from J Wunsch, sie said:
> 
> 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

but 2.1.6 defines __FreeBSD_version as 199612

has there been a change in how this is used ?




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