In current glibc versions, internal __secure_getenv no longer exists and was replaced by secure_getenv() Signed-off-by: Cristian Rodríguez <crrodriguez@xxxxxxxxxxxx> --- configure.ac | 1 + lib/env.c | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index 9024809..39c7f20 100644 --- a/configure.ac +++ b/configure.ac @@ -298,6 +298,7 @@ AC_CHECK_DECL([strsignal], AC_CHECK_FUNCS([ \ __fpending \ + secure_getenv \ __secure_getenv \ err \ errx \ diff --git a/lib/env.c b/lib/env.c index 04e0f0b..9f81b44 100644 --- a/lib/env.c +++ b/lib/env.c @@ -100,8 +100,9 @@ char *safe_getenv(const char *arg) return NULL; #endif #endif - -#ifdef HAVE___SECURE_GETENV +#ifdef HAVE_SECURE_GETENV +return secure_getenv(arg); +#elif HAVE___SECURE_GETENV return __secure_getenv(arg); #else return getenv(arg); -- 1.8.1.1 -- To unsubscribe from this list: send the line "unsubscribe util-linux" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html