From 3429dd5914fd4415128fc27967f66f2b65f11e30 Mon Sep 17 00:00:00 2001 From: Ezra Peisach Date: Wed, 7 Feb 1996 20:33:12 +0000 Subject: [PATCH] * configure.in: Check for stdlib.h * 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 | 7 +++++++ src/appl/gssftp/ftp/configure.in | 1 + src/appl/gssftp/ftp/ftp.c | 3 +++ src/appl/gssftp/ftp/pclose.c | 3 +++ src/appl/gssftp/ftp/ruserpass.c | 2 +- src/appl/gssftp/ftp/secure.c | 3 +++ 6 files changed, 18 insertions(+), 1 deletion(-) diff --git a/src/appl/gssftp/ftp/ChangeLog b/src/appl/gssftp/ftp/ChangeLog index ce190ef31..0545222bb 100644 --- a/src/appl/gssftp/ftp/ChangeLog +++ b/src/appl/gssftp/ftp/ChangeLog @@ -1,3 +1,10 @@ +Mon Feb 5 09:06:16 1996 Ezra Peisach + + * 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 * cmds.c: Handle sys_errlist and remove declaration of errno. diff --git a/src/appl/gssftp/ftp/configure.in b/src/appl/gssftp/ftp/configure.in index 33090755d..5fe000144 100644 --- a/src/appl/gssftp/ftp/configure.in +++ b/src/appl/gssftp/ftp/configure.in @@ -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 diff --git a/src/appl/gssftp/ftp/ftp.c b/src/appl/gssftp/ftp/ftp.c index 3c701d4f9..341bb7e9e 100644 --- a/src/appl/gssftp/ftp/ftp.c +++ b/src/appl/gssftp/ftp/ftp.c @@ -35,6 +35,9 @@ static char sccsid[] = "@(#)ftp.c 5.38 (Berkeley) 4/22/91"; #endif /* not lint */ +#ifdef HAVE_STDLIB_H +#include +#endif #include #include #include diff --git a/src/appl/gssftp/ftp/pclose.c b/src/appl/gssftp/ftp/pclose.c index e1e13e451..02f08f6f9 100644 --- a/src/appl/gssftp/ftp/pclose.c +++ b/src/appl/gssftp/ftp/pclose.c @@ -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 +#ifdef HAVE_STDLIB_H +#include +#endif #include #include #include diff --git a/src/appl/gssftp/ftp/ruserpass.c b/src/appl/gssftp/ftp/ruserpass.c index 5587c6c19..a3e676059 100644 --- a/src/appl/gssftp/ftp/ruserpass.c +++ b/src/appl/gssftp/ftp/ruserpass.c @@ -38,7 +38,7 @@ static char sccsid[] = "@(#)ruserpass.c 5.3 (Berkeley) 3/1/91"; #include #include #include -#ifdef POSIX +#ifdef HAVE_STDLIB_H #include #endif #include diff --git a/src/appl/gssftp/ftp/secure.c b/src/appl/gssftp/ftp/secure.c index 07598dabf..f485d6b66 100644 --- a/src/appl/gssftp/ftp/secure.c +++ b/src/appl/gssftp/ftp/secure.c @@ -24,6 +24,9 @@ extern gss_ctx_id_t gcontext; #include #include +#ifdef HAVE_STDLIB_H +#include +#endif #include #include #include -- 2.26.2