ring.c: Include string.h or strings.h
authorEzra Peisach <epeisach@mit.edu>
Wed, 24 May 1995 14:12:19 +0000 (14:12 +0000)
committerEzra Peisach <epeisach@mit.edu>
Wed, 24 May 1995 14:12:19 +0000 (14:12 +0000)
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

src/appl/telnet/telnet/ChangeLog
src/appl/telnet/telnet/configure.in
src/appl/telnet/telnet/externs.h
src/appl/telnet/telnet/ring.c

index 6ca8bcddd9f2670b3e8424ac760359fd9d1b95bc..18c442f5b3004677f561855f21819f24d4e21853 100644 (file)
@@ -1,3 +1,12 @@
+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.
index 2f2c5eab895ebec222eb8942f36fdc2da33daa58..d712e7bbf3701b5992eb2f098ca517ea3ca505f6 100644 (file)
@@ -6,7 +6,7 @@ AC_SET_BUILDTOP
 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)
index ae25e853d5902cabf656cceb8fab1ae6826d0a24..8e66fdf6e0336843906d995d4bc3460f9bed5790 100644 (file)
@@ -33,6 +33,8 @@
  *     @(#)externs.h   8.1 (Berkeley) 6/6/93
  */
 
+#include <sys/param.h>
+
 #ifndef        BSD
 # define BSD 43
 #endif
@@ -83,6 +85,13 @@ typedef unsigned char cc_t;
 # endif
 #endif
 
+
+#ifdef HAVE_STDLIB_H
+#include <stdlib.h>
+#else
+extern char *malloc(), *calloc(), *realloc();
+#endif
+
 #ifndef        NO_STRING_H
 #include <string.h>
 #else
index 93d379e7770a8b413a6957015c4b513a0acd2f5c..59fae9eb8a1191dc71d7b2012ec4110dcfebb34d 100644 (file)
 #include       "ring.h"
 #include       "general.h"
 
+#ifndef        NO_STRING_H
+#include <string.h>
+#else
+#include <strings.h>
+#endif
+
 /* Internal macros */
 
 #if    !defined(MIN)