Re: ldap and solaris 2.x

Alan Young (
Fri, 09 Dec 1994 08:30:17 +0000

> I have been massaging ldap 3.1b7 to work with Solaris without using the
> evil and broken /usr/ucblib/libucb.a (you guys are nuts if you think it's
> going to work well with that kludge).
> Anyway, I'm about half done turning the Berkeleyisms into POSIX syntax
> for Solaris; I've kept just about all the changes as defines in
> include/lber.h and build/platforms/sunos5-gcc/Make-platform.
> I am curious as to which define I should use to key the Solaris changes.
> Should I use #ifdef sunos5, or should I try to be clever and use
> pre-processor defines? __svr4__ && __sun__ would do it and should also be
> true for Solaris 2.x on x86 with gcc (ie, we should avoid using
> __sparc__), but I am not sure if those are true for the many Sun compilers
> for this platform...

I would suggest using something like a more generic SVR4 name. I would
almost make this behaviour the default as BSD-type environments are
pretty-much the exception these days.

Alan Young.