Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 31 Mar 1997 02:50:00 -0800 (PST)
From:      Doug White <dwhite@gdi.uoregon.edu>
To:        hackers@freebsd.org
Subject:   Telling 2.2 from 3.0 (fwd)
Message-ID:  <Pine.BSI.3.94.970331024930.397L-100000@localhost>

next in thread | raw e-mail | index | archive | help
This is your guys's area...

Doug White                              | University of Oregon  
Internet:  dwhite@resnet.uoregon.edu    | Residence Networking Assistant
http://gladstone.uoregon.edu/~dwhite    | Computer Science Major

---------- Forwarded message ----------
Date: Sun, 30 Mar 1997 11:07:49 -0800 (PST)
From: Archie Cobbs <archie@whistle.com>
To: freebsd-questions@freebsd.org
Subject: Telling 2.2 from 3.0


What is the "correct" way to tell which version of FreeBSD you're
building on using #ifdef's in your C source code?

Specifically, I have the problem that a file requires

  #include <net/if_var.h>

when building under 3.0, but not when building under 2.2 (the file
doesn't exist under 2.2).

Thanks,
-Archie

___________________________________________________________________________
Archie Cobbs   *   Whistle Communications, Inc.  *   http://www.whistle.com




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSI.3.94.970331024930.397L-100000>