NSS Modules
Ben Goodwin
ben at atomicmatrix.net
Thu Jul 10 17:21:56 PDT 2003
> 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
More information about the freebsd-hackers
mailing list