From: Ezra Peisach Date: Thu, 21 Jun 2001 17:31:08 +0000 (+0000) Subject: * configure.in: Test if prototypes needed for setenv and unsetenv X-Git-Tag: krb5-1.3-alpha1~1332 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=eb6426653a68d2a1d92ae8185c48f6acbafb4beb;p=krb5.git * configure.in: Test if prototypes needed for setenv and unsetenv * ext.h: Provide prototypes for unsetenv and setenv if needed. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13454 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/appl/telnet/telnetd/ChangeLog b/src/appl/telnet/telnetd/ChangeLog index 7fe040484..b1f38c655 100644 --- a/src/appl/telnet/telnetd/ChangeLog +++ b/src/appl/telnet/telnetd/ChangeLog @@ -1,3 +1,9 @@ +2001-06-21 Ezra Peisach + + * configure.in: Test if prototypes needed for setenv and unsetenv. + + * ext.h: Provide prototypes for unsetenv and setenv if needed. + 2001-06-19 Ezra Peisach * utility.c (printsub): Ensure variable set before use. diff --git a/src/appl/telnet/telnetd/configure.in b/src/appl/telnet/telnetd/configure.in index 4cab370df..e808694a7 100644 --- a/src/appl/telnet/telnetd/configure.in +++ b/src/appl/telnet/telnetd/configure.in @@ -59,5 +59,7 @@ if test $krb5_cv_sys_setpgrp_two = yes; then AC_DEFINE(SETPGRP_TWOARG) fi dnl +KRB5_NEED_PROTO([#include ],unsetenv,1) +KRB5_NEED_PROTO([#include ],setenv,1) KRB5_BUILD_PROGRAM V5_AC_OUTPUT_MAKEFILE diff --git a/src/appl/telnet/telnetd/ext.h b/src/appl/telnet/telnetd/ext.h index 8f879d351..428f491a9 100644 --- a/src/appl/telnet/telnetd/ext.h +++ b/src/appl/telnet/telnetd/ext.h @@ -216,3 +216,9 @@ extern struct { extern int needtermstat; #endif +#ifdef NEED_UNSETENV_PROTO +extern void unsetenv(const char *); +#endif +#ifdef NEED_SETENV_PROTO +extern void setenv(const char *, const char *, int); +#endif