From 1cb1c19900041a18ea0f7ce7a289cc1ed3fff23e Mon Sep 17 00:00:00 2001 From: Ezra Peisach Date: Thu, 21 Jun 2001 18:39:21 +0000 Subject: [PATCH] * forward.c: If NEED_SETENV defined, provide prototype for setenv * configure.in: If compiling setenv.c, define NEED_SETENV. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13464 dc483132-0cff-0310-8789-dd5450dbe970 --- src/appl/telnet/libtelnet/ChangeLog | 6 ++++++ src/appl/telnet/libtelnet/configure.in | 1 + src/appl/telnet/libtelnet/forward.c | 4 ++++ 3 files changed, 11 insertions(+) diff --git a/src/appl/telnet/libtelnet/ChangeLog b/src/appl/telnet/libtelnet/ChangeLog index e99f7209d..ac0ac184f 100644 --- a/src/appl/telnet/libtelnet/ChangeLog +++ b/src/appl/telnet/libtelnet/ChangeLog @@ -1,3 +1,9 @@ +2001-06-21 Ezra Peisach + + * forward.c: If NEED_SETENV defined, provide prototype for setenv. + + * configure.in: If compiling setenv.c, define NEED_SETENV. + 2001-06-20 Ezra Peisach * kerberos5.c: Add prototype for rd_and_store_for_creds(). diff --git a/src/appl/telnet/libtelnet/configure.in b/src/appl/telnet/libtelnet/configure.in index 343bc051b..3b55d3ddb 100644 --- a/src/appl/telnet/libtelnet/configure.in +++ b/src/appl/telnet/libtelnet/configure.in @@ -10,6 +10,7 @@ LIBOBJS="$LIBOBJS getent.o" 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 diff --git a/src/appl/telnet/libtelnet/forward.c b/src/appl/telnet/libtelnet/forward.c index 1042a452a..e7059e002 100644 --- a/src/appl/telnet/libtelnet/forward.c +++ b/src/appl/telnet/libtelnet/forward.c @@ -29,6 +29,10 @@ #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. */ -- 2.26.2