From owner-freebsd-hackers Thu Mar 4 13:59:12 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from mailhub.psn.ie (mailhub.psn.ie [194.106.150.254]) by hub.freebsd.org (Postfix) with ESMTP id 0DC2814D88 for ; Thu, 4 Mar 1999 13:58:57 -0800 (PST) (envelope-from ad@mailhub.psn.ie) Received: from ad (helo=localhost) by mailhub.psn.ie with local-esmtp (Exim 2.12 #3) id 10Ig83-0000fD-00; Thu, 4 Mar 1999 21:58:03 +0000 Date: Thu, 4 Mar 1999 21:58:03 +0000 (GMT) From: Andy Doran To: Jeroen Ruigrok/Asmodai Cc: hackers@FreeBSD.org Subject: Re: /usr/include/net In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > 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 ? > > That's kinda puzzling me for now. > See the FAQ/Handbook entry on porting for more information, but basically AFAIR: -- snip #include #if defined(__FreeBSD__) && __FreeBSD_version >= 300001 #include #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