From owner-freebsd-hackers@FreeBSD.ORG Thu Jul 10 14:12:06 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 7BDC937B401 for ; Thu, 10 Jul 2003 14:12:06 -0700 (PDT) Received: from rs.atomicmatrix.net (rs.atomicmatrix.net [64.246.60.79]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7A03E43FB1 for ; Thu, 10 Jul 2003 14:12:05 -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 h6ALC4H13829 for ; Thu, 10 Jul 2003 16:12:04 -0500 Message-ID: <000501c34727$e9575fe0$6801a8c0@dsg.atomicmatrix.net> From: "Ben Goodwin" To: References: <001301c34669$438e1040$6801a8c0@dsg.atomicmatrix.net> <20030710164322.GA1812@technokratis.com> Date: Thu, 10 Jul 2003 17:12:03 -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: Thu, 10 Jul 2003 21:12:06 -0000 I'd like to support Sun's cc, however .. so I'm betting that isn't defined (I will check) ... I figured that would be available under gcc but assumed it wasn't "portable enough" ... And yes, one API would be nice. Each OS has their own :-\ Thanks! -=| Ben > You should be able to do: > > #if defined(__FreeBSD__) > > to test if you're on FreeBSD. This is built as part of the > freebsd-spec in gcc so it will be defined at least if you're using our > system (stock) compiler. > > Ideally, though, the API would be the same. :-) >