From owner-freebsd-hackers Thu Mar 4 22:16:27 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from smtp04.wxs.nl (smtp04.wxs.nl [195.121.6.59]) by hub.freebsd.org (Postfix) with ESMTP id 9BBCE1500E for ; Thu, 4 Mar 1999 22:16:24 -0800 (PST) (envelope-from asmodai@wxs.nl) Received: from daemon.ninth-circle.org ([195.121.57.191]) by smtp04.wxs.nl (Netscape Messaging Server 3.61) with ESMTP id AAA32B1; Fri, 5 Mar 1999 07:16:06 +0100 Received: from daemon.ninth-circle.org (abaddon@daemon [192.168.0.1]) by daemon.ninth-circle.org (8.9.3/8.9.3) with ESMTP id HAA14376; Fri, 5 Mar 1999 07:16:46 +0100 (CET) (envelope-from asmodai@wxs.nl) Message-ID: X-Mailer: XFMail 1.3 [p0] on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: Date: Fri, 05 Mar 1999 07:16:46 +0100 (CET) Organization: Ninth Circle Enterprises From: Jeroen Ruigrok/Asmodai To: Andy Doran Subject: Re: /usr/include/net Cc: hackers@FreeBSD.org Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On 04-Mar-99 Andy Doran wrote: >> 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 ? >> > See the FAQ/Handbook entry on porting for more information, but basically > AFAIR: It's not for a port, it's for native support alongsides Linux and a couple of other OS's. > -- snip >#include > >#if defined(__FreeBSD__) && __FreeBSD_version >= 300001 >#include >#endif > --snip thanks, will try > 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. Well, the reason the program gets interface lists is because it needs them for routing, in how much this is a general hack I still need to find out and I'll be calling on -hackers whenever I need more advice =) The program is the Zebra project @ www.zebra.org --- Jeroen Ruigrok van der Werven asmodai(at)wxs.nl The idea does not replace the work... Network/Security Specialist *BSD: Powered by Knowledge & Know-how To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message