From owner-freebsd-hackers Thu Jan 30 16:57:48 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id QAA17551 for hackers-outgoing; Thu, 30 Jan 1997 16:57:48 -0800 (PST) Received: from nic.follonett.no (nic.follonett.no [194.198.43.10]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id QAA17546 for ; Thu, 30 Jan 1997 16:57:45 -0800 (PST) Received: (from uucp@localhost) by nic.follonett.no (8.8.5/8.8.3) with UUCP id BAA06430; Fri, 31 Jan 1997 01:56:10 +0100 (MET) Received: from oo7 (oo7.dimaga.com [192.0.0.65]) by dimaga.com (8.7.5/8.7.2) with SMTP id BAA17861; Fri, 31 Jan 1997 01:57:42 +0100 (MET) Message-Id: <3.0.32.19970131015742.00b1ccf0@dimaga.com> X-Sender: eivind@dimaga.com X-Mailer: Windows Eudora Pro Version 3.0 (32) Date: Fri, 31 Jan 1997 01:57:43 +0100 To: asami@vader.cs.berkeley.edu (Satoshi Asami) From: Eivind Eklund Subject: Re: Cc: joerg_wunsch@uriah.heep.sax.de, hackers@FreeBSD.ORG Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Sender: owner-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk At 03:53 PM 1/30/97 -0800, Satoshi Asami wrote: >>> When was this introduced, and is there any way for me to check if it is >>> present? (BSD > xxxx, for instance?) >> >> #include >> >> #if __FreeBSD_version >= 199702 >> # define NEED_NET_IF_VAR_H >> #endif >> >> That catches some -current systems before the change, but that >> shouldn't matter. It doesn't hit 2.2 machines, since they are frozen >> to 199701 (even though it's obvious that we won't ship 2.2R by >> January). > >Except this will break when 2.2.5 is released (unless if_var.h is >merged into the -2.2 branch, but you get the point). :( Should I add something like .if exists(/usr/bin/net/if_var.h) CFLAGS+= HAS_NET_IF_VAR_H .endif to the Makefile in addition, perhaps? As long as I haven't got a "proper" solution this is the best I can see. (This could be a loop over the include-path instead of a direct test, but I cannot see this gaining much on anything but very obscure systems.) Eivind Eklund / perhaps@yes.no / http://maybe.yes.no/perhaps/