configure.in: Check for stdlib.h
externs.h: Include sys/param.h before redefining BSD
Include stdlib.h or define malloc, realloc, calloc
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5860
dc483132-0cff-0310-8789-
dd5450dbe970
+Wed May 24 10:00:38 1995 Ezra Peisach <epeisach@kangaroo.mit.edu>
+
+ * ring.c: Include string.h or strings.h
+
+ * configure.in: Check for stdlib.h
+
+ * externs.h: Include sys/param.h before redefining BSD
+ Include stdlib.h or define malloc, realloc, calloc
+
Fri Apr 28 18:07:03 1995 Mark Eichin <eichin@cygnus.com>
* Makefile.in (KLIB): put KRB4_LIB inside KLIB.
AC_PROG_INSTALL
AC_VFORK
KRB_INCLUDE
-AC_HAVE_HEADERS(unistd.h sys/select.h)
+AC_HAVE_HEADERS(unistd.h sys/select.h stdlib.h)
AC_CHECK_LIB(termcap,main,AC_DEFINE(TERMCAP)
LIBS="$LIBS -ltermcap")
AC_HEADER_CHECK(termios.h,AC_DEFINE(USE_TERMIO) ac_termio=1)
* @(#)externs.h 8.1 (Berkeley) 6/6/93
*/
+#include <sys/param.h>
+
#ifndef BSD
# define BSD 43
#endif
# endif
#endif
+
+#ifdef HAVE_STDLIB_H
+#include <stdlib.h>
+#else
+extern char *malloc(), *calloc(), *realloc();
+#endif
+
#ifndef NO_STRING_H
#include <string.h>
#else
#include "ring.h"
#include "general.h"
+#ifndef NO_STRING_H
+#include <string.h>
+#else
+#include <strings.h>
+#endif
+
/* Internal macros */
#if !defined(MIN)