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 * [EMAIL PROTECTED] * [EMAIL PROTECTED] TECHNOkRATIS Consulting Services * http://www.technokratis.com/ _______________________________________________ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "[EMAIL PROTECTED]"