* configure.in: If compiling setenv.c, define NEED_SETENV.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13464
dc483132-0cff-0310-8789-
dd5450dbe970
+2001-06-21 Ezra Peisach <epeisach@rna.mit.edu>
+
+ * forward.c: If NEED_SETENV defined, provide prototype for setenv.
+
+ * configure.in: If compiling setenv.c, define NEED_SETENV.
+
2001-06-20 Ezra Peisach <epeisach@mit.edu>
* kerberos5.c: Add prototype for rd_and_store_for_creds().
if test $ac_cv_func_setenv = no || test $ac_cv_func_unsetenv = no \
|| test $ac_cv_func_getenv = no; then
LIBOBJS="$LIBOBJS setenv.o"
+ AC_DEFINE([NEED_SETENV])
fi
AC_C_CONST
if test "$KRB4_LIB" = ''; then
#include "k5-int.h"
+#ifdef NEED_SETENV
+extern int setenv(char *, char *, int);
+#endif
+
extern char *line; /* see sys_term.c */
/* Decode, decrypt and store the forwarded creds in the local ccache. */