Date: Thu, 10 Jul 2003 16:43:22 +0000 From: Bosko Milekic <bmilekic@technokratis.com> To: Ben Goodwin <ben@atomicmatrix.net> Cc: freebsd-hackers@freebsd.org Subject: Re: NSS Modules Message-ID: <20030710164322.GA1812@technokratis.com> In-Reply-To: <001301c34669$438e1040$6801a8c0@dsg.atomicmatrix.net> References: <001301c34669$438e1040$6801a8c0@dsg.atomicmatrix.net>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Jul 09, 2003 at 06:27:21PM -0400, Ben Goodwin wrote: > Hi guys ... > > I thought I'd give you a heads-up that I'm porting libnss-mysql to the NSS > API that FreeBSD 5.1 has adopted in case anyone has input, suggestions, > wants to test, etc.. > I'm also curious about including it eventually .. via ports or something > perhaps? > Is anyone else developing NSS modules for FreeBSD? > > I believe I've figured out the API .. I've got a rudimentary test working, > so ... > > Actually, I do have one question .. As I support more operating systems, > I've wondered about how to autoconf the different APIs .. right now if I see > nss.h I know it's one OS, and if I see nsswitch.h I know it's the other > (Linux vs. Solaris) .. but that doesn't hold true with FreeBSD added to the > mix. Any recommendations on what I could do to create an API define that > holds the current O/S in a clean and reliable fashion? > Thanks! 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. :-) > -=| Ben > > http://libnss-mysql.sourceforge.net -- Bosko Milekic * bmilekic@technokratis.com * bmilekic@FreeBSD.org TECHNOkRATIS Consulting Services * http://www.technokratis.com/
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030710164322.GA1812>