[374] in Kerberos_V5_Development
stdlib.h
jfc@ATHENA.MIT.EDU (jfc@ATHENA.MIT.EDU)
Fri Oct 26 19:03:07 1990
There is a stdlib.h in the kerberos 5 include directory.
This can lose on systems which provide <stdlib.h>.
Specific case: I am compiling on an RT with an ANSI compiler
(hc2 using built in preprocessor, ANSI includes and libraries).
src/include/stdlib.h is effectively empty (all is ifdef-ed on
other machine types), but it does prevent <stdlib.h> from being
used. This means malloc() doesn't get declared.
The kerberos stdlib.h should be renamed to something else, and inclusion
made conditional on something like:
#if defined(__STDC__) && !defined(NOSTDHDRS)
#include <stdlib.h>
#else
#include <krb-defines-for-losing-systems.h>
#endif