From owner-freebsd-hackers@FreeBSD.ORG Thu Jul 10 17:21:56 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7B27A37B404 for ; Thu, 10 Jul 2003 17:21:56 -0700 (PDT) Received: from rs.atomicmatrix.net (rs.atomicmatrix.net [64.246.60.79]) by mx1.FreeBSD.org (Postfix) with ESMTP id 31C8843F75 for ; Thu, 10 Jul 2003 17:21:55 -0700 (PDT) (envelope-from ben@atomicmatrix.net) Received: from energizer (h00045ad8cdf8.ne.client2.attbi.com [24.60.62.109]) by rs.atomicmatrix.net (8.11.6/8.11.6) with ESMTP id h6B0LsH14611 for ; Thu, 10 Jul 2003 19:21:54 -0500 Message-ID: <001001c34742$70193660$6801a8c0@dsg.atomicmatrix.net> From: "Ben Goodwin" To: References: <001301c34669$438e1040$6801a8c0@dsg.atomicmatrix.net><20030710164322.GA1812@technokratis.com><000501c34727$e9575fe0$6801a8c0@dsg.atomicmatrix.net> <20030710174031.GA2521@technokratis.com> Date: Thu, 10 Jul 2003 20:21:56 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Subject: Re: NSS Modules X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Jul 2003 00:21:56 -0000 > You can still test for whether or not it is defined. > > #if defined(__FreeBSD__) > /* Do freebsd-specific stuff */ > #else > /* Other systems? */ > #endif *nod* I was just worried about the tests required for Solaris using either gcc or sun's cc .. looks like #if defined(sun) does the trick for either. And for Linux #if defined(linux) Is the API that FreeBSD adopted a "standard" BSD API? IE should I check for BSD instead of __FreeBSD__ ? IIRC this comes from the NetBSD implementation .. which perhaps I need to go install and test out as well :-) Sorry this got a little off topic ... Thanks! -=| Ben