diff options
author | Ezra Peisach <epeisach@mit.edu> | 1996-02-07 20:33:12 +0000 |
---|---|---|
committer | Ezra Peisach <epeisach@mit.edu> | 1996-02-07 20:33:12 +0000 |
commit | 3429dd5914fd4415128fc27967f66f2b65f11e30 (patch) | |
tree | 50fb32e1eab7bb059d4795debe6ea2cd0f35fe79 /src/appl/gssftp/ftp | |
parent | 1e14c4a2145167e32eccbab0a032115ebf86006d (diff) | |
download | krb5-3429dd5914fd4415128fc27967f66f2b65f11e30.tar.gz krb5-3429dd5914fd4415128fc27967f66f2b65f11e30.tar.xz krb5-3429dd5914fd4415128fc27967f66f2b65f11e30.zip |
* 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
Diffstat (limited to 'src/appl/gssftp/ftp')
-rw-r--r-- | src/appl/gssftp/ftp/ChangeLog | 7 | ||||
-rw-r--r-- | src/appl/gssftp/ftp/configure.in | 1 | ||||
-rw-r--r-- | src/appl/gssftp/ftp/ftp.c | 3 | ||||
-rw-r--r-- | src/appl/gssftp/ftp/pclose.c | 3 | ||||
-rw-r--r-- | src/appl/gssftp/ftp/ruserpass.c | 2 | ||||
-rw-r--r-- | src/appl/gssftp/ftp/secure.c | 3 |
6 files changed, 18 insertions, 1 deletions
diff --git a/src/appl/gssftp/ftp/ChangeLog b/src/appl/gssftp/ftp/ChangeLog index ce190ef319..0545222bbb 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 <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. diff --git a/src/appl/gssftp/ftp/configure.in b/src/appl/gssftp/ftp/configure.in index 33090755de..5fe0001449 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 3c701d4f9a..341bb7e9e0 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 <stdlib.h> +#endif #include <sys/param.h> #include <sys/stat.h> #include <sys/ioctl.h> diff --git a/src/appl/gssftp/ftp/pclose.c b/src/appl/gssftp/ftp/pclose.c index e1e13e451c..02f08f6f9b 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 <stdio.h> +#ifdef HAVE_STDLIB_H +#include <stdlib.h> +#endif #include <signal.h> #include <sys/param.h> #include <sys/wait.h> diff --git a/src/appl/gssftp/ftp/ruserpass.c b/src/appl/gssftp/ftp/ruserpass.c index 5587c6c19d..a3e6760598 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 <sys/types.h> #include <stdio.h> #include <string.h> -#ifdef POSIX +#ifdef HAVE_STDLIB_H #include <stdlib.h> #endif #include <ctype.h> diff --git a/src/appl/gssftp/ftp/secure.c b/src/appl/gssftp/ftp/secure.c index 07598dabf5..f485d6b669 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 <stdio.h> #include <string.h> +#ifdef HAVE_STDLIB_H +#include <stdlib.h> +#endif #include <sys/types.h> #include <netinet/in.h> #include <errno.h> |