+Wed May 24 07:12:08 1995 Ezra Peisach <epeisach@kangaroo.mit.edu>
+
+ * configure.in: Check for stdlib.h.
+
+ * kpasswd.c, networked.c: Include stdlib.h or declare malloc()
Mon May 22 09:56:42 EDT 1995 Paul Park (pjpark@mit.edu)
* Makefile.in - Install kpasswd as kpasswd_old. Manpage too.
AC_SET_BUILDTOP
AC_PROG_INSTALL
WITH_NETLIB
-AC_HAVE_HEADERS(unistd.h)
+AC_HAVE_HEADERS(unistd.h stdlib.h)
CHECK_UTMP
AC_FUNC_CHECK(getutent,AC_DEFINE(HAVE_GETUTENT))
ET_RULES
#include "com_err.h"
#include "adm_defs.h"
+#ifdef HAVE_STDLIB_H
+#include <stdlib.h>
+#else
+extern char *malloc(), *calloc(), *realloc();
+#endif
+
#ifndef MAXPATHLEN
#define MAXPATHLEN 1024
#endif
return(1);
}
/* connect to the server */
- if (connect(*local_socket, &remote_sin, sizeof(remote_sin)) < 0) {
+ if (connect(*local_socket, (struct sockaddr *) &remote_sin, sizeof(remote_sin)) < 0) {
fprintf(stderr, "Cannot Connect to Socket\n");
close(*local_socket);
return(1);