From c7fc46aeb0ea9637deb242fbdba2e07cb63a44f6 Mon Sep 17 00:00:00 2001 From: Samuel Holland Date: Tue, 11 Sep 2018 22:43:54 -0500 Subject: stdlib: Add secure_getenv alias to __secure_getenv Signed-off-by: Samuel Holland --- libgcompat/stdlib.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'libgcompat') diff --git a/libgcompat/stdlib.c b/libgcompat/stdlib.c index a08f914..82f7602 100644 --- a/libgcompat/stdlib.c +++ b/libgcompat/stdlib.c @@ -5,6 +5,8 @@ #include /* getenv, realpath, strto* */ #include /* get*id */ +#include "alias.h" + /** * Resolve a pathname, with buffer overflow checking. * @@ -30,6 +32,7 @@ char *__secure_getenv(const char *name) return getenv(name); } +weak_alias(__secure_getenv, secure_getenv); /** * Underlying function for strtod. -- cgit v1.2.3-70-g09d2