Patch for solaris 2.x to provide nsswitch wins resolution
David Collier-Brown -- Customer Engineering
David.Collier-Brown at Sun.COM
Mon Dec 16 14:49:00 GMT 2002
Steven Tamm wrote:
>
> Sorry if this is not the right forum, but the documents on the website kind
> of implied I should send this to the list.
>
> I needed to get wins resolution added on Solaris to nsswitch specifically
> for gethostbyname. The problem was that libnss_wins.so didn't include the
> solaris wrapper and that libnss_winbind.so didn't include gethostbyname.
> Here is a patch off of 2.2.7a that solves both issues (I'm not sure about
> the #if SUN).
The predefined macros fron a Sun SC-series compilers are
__sun
__unix
__SUNPRO_C=0x500
__sparc (SPARC)
__sparcv9 (SPARC with -xarch=v9|v9a)
__i386 (x86)
__SVR4
Not that those are double leading underscores. From memory
and a quick check on linux, GCC defines a partially overlapping
set including __linux and __sun.
--dave
--
David Collier-Brown, | Always do right. This will gratify
Sun Microsystems DCMO | some people and astonish the rest.
Toronto, Ontario |
(905) 415-2849 or x52849 | davecb at canada.sun.com
More information about the samba-technical
mailing list