* configure.in: Check for stdlib.h
authorEzra Peisach <epeisach@mit.edu>
Wed, 7 Feb 1996 20:33:12 +0000 (20:33 +0000)
committerEzra Peisach <epeisach@mit.edu>
Wed, 7 Feb 1996 20:33:12 +0000 (20:33 +0000)
* secure.c, pclose.c, ruserpass.c, ftp.c: Include stdlib.h if
present for malloc declarations.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7453 dc483132-0cff-0310-8789-dd5450dbe970

src/appl/gssftp/ftp/ChangeLog
src/appl/gssftp/ftp/configure.in
src/appl/gssftp/ftp/ftp.c
src/appl/gssftp/ftp/pclose.c
src/appl/gssftp/ftp/ruserpass.c
src/appl/gssftp/ftp/secure.c

index ce190ef3198c90259a1194ef4ddfd27d113db64a..0545222bbb78f52b7ce5f7b9c4c9f9fb990275d9 100644 (file)
@@ -1,3 +1,10 @@
+Mon Feb 5 09:06:16 1996  Ezra Peisach  <epeisach@kangaroo.mit.edu>
+
+       * configure.in: Check for stdlib.h
+
+       * secure.c, pclose.c, ruserpass.c, ftp.c: Include stdlib.h if
+               present for malloc declarations.
+
 Thu Jan 18 18:33:18 1996  Sam Hartman  <hartmans@zygorthian-space-raiders.MIT.EDU>
 
        * cmds.c: Handle sys_errlist and remove declaration of errno.
index 33090755de3d60a155a99217a477d1ccd09e7bb0..5fe00014494b365572218a9b8159bbe53e50b0c8 100644 (file)
@@ -10,5 +10,6 @@ AC_FUNC_VFORK
 AC_HAVE_FUNCS(getcwd getdtablesize)
 AC_CHECK_HEADERS(sys/select.h)
 AC_HEADER_CHECK(termios.h,AC_FUNC_CHECK(cfsetispeed,AC_DEFINE(POSIX_TERMIOS)))
+AC_CHECK_HEADERS(stdlib.h)
 V5_USE_SHARED_LIB
 V5_AC_OUTPUT_MAKEFILE
index 3c701d4f9af0c3463062be11cb3f9da089e462e4..341bb7e9e08ba2b71b420787746ab5bd8723f4bb 100644 (file)
@@ -35,6 +35,9 @@
 static char sccsid[] = "@(#)ftp.c      5.38 (Berkeley) 4/22/91";
 #endif /* not lint */
 
+#ifdef HAVE_STDLIB_H
+#include <stdlib.h>
+#endif
 #include <sys/param.h>
 #include <sys/stat.h>
 #include <sys/ioctl.h>
index e1e13e451c9b9c490da85a9599cdc3433dfa2efd..02f08f6f9b509df52a48ece66052af5280cfaef2 100644 (file)
@@ -9,6 +9,9 @@ static  char sccsid[] = "@(#)pclose.c 1.1 90/04/28 SMI"; /* from UCB 1.2 3/7/86 *
 #endif /* not lint */
 
 #include <stdio.h>
+#ifdef HAVE_STDLIB_H
+#include <stdlib.h>
+#endif
 #include <signal.h>
 #include <sys/param.h>
 #include <sys/wait.h>
index 5587c6c19dbbf62fc38892e815034a34e07e1f3c..a3e6760598c02b19d71c6d72392e08b0ab35e9af 100644 (file)
@@ -38,7 +38,7 @@ static char sccsid[] = "@(#)ruserpass.c       5.3 (Berkeley) 3/1/91";
 #include <sys/types.h>
 #include <stdio.h>
 #include <string.h>
-#ifdef POSIX
+#ifdef HAVE_STDLIB_H
 #include <stdlib.h>
 #endif
 #include <ctype.h>
index 07598dabf54f3598c37b9b85a09ee240bf1b9512..f485d6b6694b6cf442715eda31bad4c58ca46b63 100644 (file)
@@ -24,6 +24,9 @@ extern gss_ctx_id_t gcontext;
 
 #include <stdio.h>
 #include <string.h>
+#ifdef HAVE_STDLIB_H
+#include <stdlib.h>
+#endif
 #include <sys/types.h>
 #include <netinet/in.h>
 #include <errno.h>