diff --git a/env.c b/env.c index 9c93b2c43..901c35e98 100644 --- a/env.c +++ b/env.c @@ -261,6 +261,7 @@ _sudo_setenv(var, val, dupcheck) insert_env(estring, dupcheck, FALSE); } +#if defined(HAVE_LDAP_SASL_INTERACTIVE_BIND_S) && !defined(HAVE_GSS_KRB5_CCACHE_NAME) /* * External version of sudo_setenv() that keeps things in sync with * the environ pointer. @@ -316,6 +317,7 @@ sudo_unsetenv(var) } } } +#endif /* HAVE_LDAP_SASL_INTERACTIVE_BIND_S && !HAVE_GSS_KRB5_CCACHE_NAME */ /* * Insert str into env.envp, assumes str has an '=' in it.