used with free is called on the contents).
ss_internal.h: Include stdlib.h if present on system. If is present,
don't redeclare malloc.
configure.in: Check for stdlib.h before including blindly.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5998
dc483132-0cff-0310-8789-
dd5450dbe970
+Fri Jun 9 06:20:37 1995 Ezra Peisach <epeisach@kangaroo.mit.edu>
+
+ * error.c (ss_error): remove const declaration from local
+ variable. (it is used with free is called on the contents).
+
+ * ss_internal.h: Include stdlib.h if present on system. If is
+ present, don't redeclare malloc.
+
+ * configure.in: Check for stdlib.h before including blindly.
+
Thu Jun 8 23:22:07 1995 <tytso@rsx-11.mit.edu>
* list_req.c, ss_internal.h: Clean up -Wall flames.
CHECK_SIGNALS
CHECK_SIGPROCMASK
AC_RETSIGTYPE
-AC_CHECK_HEADERS(stdarg.h)
+AC_CHECK_HEADERS(stdarg.h stdlib.h)
CopySrcHeader(ss.h,$(BUILDTOP)/include/ss)
CopySrcHeader(mit-sipb-copyright.h,$(BUILDTOP)/include/ss)
CopyHeader(ss_err.h,$(BUILDTOP)/include/ss)
va_dcl
#endif
{
- register char const *whoami;
+ register char *whoami;
va_list pvar;
#ifndef HAVE_STDARG_H
int sci_idx;
#include <stdio.h>
#include <string.h>
#include <unistd.h>
+#ifdef HAVE_STDLIB_H
#include <stdlib.h>
+#endif
#ifdef __STDC__
extern ss_data **_ss_table;
extern char *ss_et_msgs[];
+#ifndef HAVE_STDLIB_H
extern pointer malloc PROTOTYPE((unsigned));
extern pointer realloc PROTOTYPE((pointer, unsigned));
extern pointer calloc PROTOTYPE((unsigned, unsigned));
+#endif
#ifdef USE_SIGPROCMASK
/* fake sigmask, sigblock, sigsetmask */