Add stdlib.h if present & necessary for malloc definition. (otherwise
define ourselves) - based on other code present.
Change ifdef POSIX to ifdef HAS_STDLIB_H
Check for stdlib.h in configure.in
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5757
dc483132-0cff-0310-8789-
dd5450dbe970
+Sun May 7 08:05:56 1995 Ezra Peisach <epeisach@kangaroo.mit.edu>
+
+ * mk_preauth.c: Add <string.h> and either <stdlib.h> or provide
+ prototypes for malloc.
+
+ * g_svc_in_tkt.c: Add <string.h>
+
+
+ * rd_preauth.c: Add <string.h>
+
+ * mk_auth.c: Include "krb4-proto.h" for get_phost definition.
+
+ * g_pw_in_tkt.c (stub_key): Add <string.h>
+
+ * send_to_kdc.c: Ifdef on HAS_STDLIB_H not POSIX
+
+ * realmofhost.c: Ifdef on HAS_STDLIB_H not POSIX
+
+ * memcache.c: Ifdef on HAS_STDLIB_H not POSIX
+
+ * configure.in: Check for stdlib.h
+
Thu May 4 10:03:22 1995 Tom Yu (tlyu@dragons-lair)
* put_svc_key.c (put_svc_key): remove spurious & in front of fkey
CHECK_FCNTL
KRB5_POSIX_LOCKS
AC_HEADER_CHECK(unistd.h,AC_DEFINE(HAS_UNISTD_H))
+dnl Could check for full stdc environment, but will only test
+dnl for stdlib.h
+AC_HEADER_CHECK(stdlib.h,AC_DEFINE(HAS_STDLIB_H))
+
dnl need MSBFIRST, LSBFIRST, BITS16, BITS32
AC_MSG_CHECKING([if system is msbfirst])
AC_CACHE_VAL(krb5_cv_is_msbfirst,
#include "mit-copyright.h"
#include "krb.h"
#include "prot.h"
+#include <string.h>
#ifndef NULL
#define NULL 0
#include "mit-copyright.h"
#include "krb.h"
#include "prot.h"
+#include <string.h>
#ifndef NULL
#define NULL 0
#include <stdio.h>
#include <errno.h>
-#ifdef POSIX
+#ifdef HAS_STDLIB_H
#include <stdlib.h>
#else
extern char *malloc (), *realloc ();
#include "mit-copyright.h"
#define DEFINE_SOCKADDR /* Ask for sockets declarations from krb.h. */
+#include <stdio.h>
#include "krb.h"
+#include "krb4-proto.h"
#include <errno.h>
-#include <stdio.h>
#include <string.h>
#define KRB_SENDAUTH_VERS "AUTHV0.1" /* MUST be KRB_SENDAUTH_VLEN chars */
*/
#include "krb.h"
+#include <string.h>
+
+#ifdef HAS_STDLIB_H
+#include <stdlib.h>
+#else
+extern char *malloc(), *calloc(), *realloc();
+#endif
/* Define a couple of function types including parameters. These
are needed on MS-Windows to convert arguments of the function pointers
#include "krb_db.h"
#include "prot.h"
#include "des.h"
+#include <string.h>
+
/* #define KERB_ERR_PREAUTH_SHORT 11 */
/* #define KERB_ERR_PREAUTH_MISMATCH 12 */
#include <string.h>
#include <stdio.h>
#include <ctype.h>
-#ifdef POSIX
+#ifdef HAS_STDLIB_H
#include <stdlib.h>
#else
extern char *malloc();
#define S_AD_SZ sizeof(struct sockaddr_in)
-#ifdef POSIX
+#ifdef HAS_STDLIB_H
#include <stdlib.h>
#else
extern char *malloc(), *calloc(), *realloc();