Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 4 Mar 1999 21:58:03 +0000 (GMT)
From:      Andy Doran <ad@psn.ie>
To:        Jeroen Ruigrok/Asmodai <asmodai@wxs.nl>
Cc:        hackers@FreeBSD.org
Subject:   Re: /usr/include/net
Message-ID:  <Pine.BSF.4.05.9903042153380.2551-100000@mailhub.psn.ie>
In-Reply-To: <XFMail.990304213124.asmodai@wxs.nl>

next in thread | previous in thread | raw e-mail | index | archive | help
> But let's say that 3.x and 4.x use the if_var.h, how would I best use this
> with includes? use #ifndef __FREEBSD_2_2__; #include <net/if_var.h> ?
> 
> That's kinda puzzling me for now.
> 
See the FAQ/Handbook entry on porting for more information, but basically
AFAIR:

-- snip
#include <sys/param.h>

#if defined(__FreeBSD__) && __FreeBSD_version >= 300001
#include <net/if_var.h>
#endif
--snip

If you're getting interface lists, a lot of stuff has changed from
3.0-RELEASE (queues are now used). Take a look interface.c from the latest
source for fetchmail for an example, which I added FreeBSD support to.

Andy.



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




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