summaryrefslogtreecommitdiffstats
path: root/src/appl/gssftp
diff options
context:
space:
mode:
authorEzra Peisach <epeisach@mit.edu>1996-02-07 20:33:12 +0000
committerEzra Peisach <epeisach@mit.edu>1996-02-07 20:33:12 +0000
commit3429dd5914fd4415128fc27967f66f2b65f11e30 (patch)
tree50fb32e1eab7bb059d4795debe6ea2cd0f35fe79 /src/appl/gssftp
parent1e14c4a2145167e32eccbab0a032115ebf86006d (diff)
downloadkrb5-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')
-rw-r--r--src/appl/gssftp/ftp/ChangeLog7
-rw-r--r--src/appl/gssftp/ftp/configure.in1
-rw-r--r--src/appl/gssftp/ftp/ftp.c3
-rw-r--r--src/appl/gssftp/ftp/pclose.c3
-rw-r--r--src/appl/gssftp/ftp/ruserpass.c2
-rw-r--r--src/appl/gssftp/ftp/secure.c3
6 files changed, 18 insertions, 1 deletions
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 <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 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 <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 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 <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 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 <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 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 <stdio.h>
#include <string.h>
+#ifdef HAVE_STDLIB_H
+#include <stdlib.h>
+#endif
#include <sys/types.h>
#include <netinet/in.h>
#include <errno.h>