[2270] in Kerberos_V5_Development

home help back first fref pref prev next nref lref last post

#ifdef unix is wrong afaik

daemon@ATHENA.MIT.EDU (Sam Hartman)
Sat Feb 22 01:13:03 1997

Date: Sat, 22 Feb 1997 01:12:24 -0500 (EST)
From: Sam Hartman <hartmans@MIT.EDU>
To: probe@MIT.EDU
Cc: krbdev@MIT.EDU


	So, at several places in the source tree, you have a #ifdef
unix; I have always been told that this is the wrong way of doing
things, and I tend to agree as it is giving me significant trouble at
the moment.  In particular, AIX does not define unix, almost certainly
because Ansi does not allow it to add to  the namespace in this
manner.

	In general, I would do something along the lines of the tests
in port-socket.h, or if that is inappropriate for some reason, have
some other define that we arrange to get set.  I'm removing all ifdef
unixes for now, replacing with the moral equivelent of if not
Windows.  If you have a better solution, feel free to implement.

--Sam

home help back first fref pref prev next nref lref last post