From owner-freebsd-current@FreeBSD.ORG Wed Dec 31 05:26:58 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0F48816A4CE for ; Wed, 31 Dec 2003 05:26:58 -0800 (PST) Received: from mailhost.stack.nl (vaak.stack.nl [131.155.140.140]) by mx1.FreeBSD.org (Postfix) with ESMTP id 974AA43D3F for ; Wed, 31 Dec 2003 05:26:56 -0800 (PST) (envelope-from freebsd@dohd.org) Received: by mailhost.stack.nl (Postfix, from userid 65534) id 3FF2CE9F#C8E1E1F0C4; Wed, 31 Dec 2003 14:26:55 +0100 (CET) Received: from nala.dohd.org (eeyore.ipv6.stack.nl [2001:610:1108:5201:204:75ff:fec4:f443]) by mailhost.stack.nl (Postfix) with ESMTP id 3FF2CE9E#C5D1C1F0BE for ; Wed, 31 Dec 2003 14:26:54 +0100 (CET) Received: from localhost (localhost.local.dohd.org [127.0.0.1]) by nala.dohd.org (Postfix) with ESMTP id 807E01155C for ; Wed, 31 Dec 2003 14:26:54 +0100 (MET) Received: from nala.dohd.org ([127.0.0.1]) by localhost (eeyore.local.dohd.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 59424-03 for ; Wed, 31 Dec 2003 14:26:51 +0100 (MET) Received: by nala.dohd.org (Postfix, from userid 1008) id CDFB61155B; Wed, 31 Dec 2003 14:26:51 +0100 (MET) Date: Wed, 31 Dec 2003 14:26:51 +0100 From: Mark Huizer To: current@freebsd.org Message-ID: <20031231132651.GC59239@eeyore.local.dohd.org> References: <20031231130800.GB59239@eeyore.local.dohd.org> <200312311421.25383.max@love2party.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200312311421.25383.max@love2party.net> User-Agent: Mutt/1.5.5.1i X-Virus-Scanned: by amavisd-new at dohd.org X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.61 (1.212.2.1-2003-12-09-exp) on vaak.stack.nl X-Spam-Status: No, hits=0.0 required=5.0 tests=none autolearn=no version=2.61 Subject: Re: kern.osreldate and EAI_NODATA deprecation X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 Dec 2003 13:26:58 -0000 > __FreeBSD_version is defined in sys/sys/param.h. The closest for your case is: > 501112 from October 16th. > http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/sys/param.h > > I'd rather suggest using an unconditional patch which introduces #ifdef > EAI_NODATA where required. That is future save (as the comment notes that > EAI_NODATA will go forever on Apr 23th). Well, that's tougher, since EAI_NODATA is defined (it's defined to be EAI_NODATA). Hmm... would this work? I'm not too 100% secure about preprocessing stuff. If this should work, I could try to get it included in the normal kaffe tree. #if defined(EAI_NODATA) && EAI_NODATA != EAI_NONAME ... #endif Perhaps I should put a defined(__FREEBSD__) somewhere in there as well. #if !defined(__FREEBSD__) || (defined(EAI_NODATA) && EAI_NODATA != EAI_NONAME) Something like that? Mark -- Nice testing in little China...