From 84b3fd8407cc9a2e7f487b6247681bd8a78a4560 Mon Sep 17 00:00:00 2001 From: Florian Weimer Date: Wed, 25 Jul 2012 19:46:22 +0200 Subject: Rename __secure_getenv to secure_getenv --- stdlib/stdlib.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'stdlib/stdlib.h') diff --git a/stdlib/stdlib.h b/stdlib/stdlib.h index f652eda3fe..cf3f39ca84 100644 --- a/stdlib/stdlib.h +++ b/stdlib/stdlib.h @@ -568,10 +568,12 @@ __BEGIN_NAMESPACE_STD extern char *getenv (const char *__name) __THROW __nonnull ((1)) __wur; __END_NAMESPACE_STD +#ifdef __USE_GNU /* This function is similar to the above but returns NULL if the programs is running with SUID or SGID enabled. */ -extern char *__secure_getenv (const char *__name) +extern char *secure_getenv (const char *__name) __THROW __nonnull ((1)) __wur; +#endif #if defined __USE_SVID || defined __USE_XOPEN /* The SVID says this is in , but this seems a better place. */ -- cgit v1.2.3