summaryrefslogtreecommitdiff
path: root/libc/stdlib/getenv.c
diff options
context:
space:
mode:
Diffstat (limited to 'libc/stdlib/getenv.c')
-rw-r--r--libc/stdlib/getenv.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libc/stdlib/getenv.c b/libc/stdlib/getenv.c
index 9dfc0d132..6cbdc3e65 100644
--- a/libc/stdlib/getenv.c
+++ b/libc/stdlib/getenv.c
@@ -22,7 +22,7 @@
/* IEEE Std 1003.1-2001 says getenv need not be thread safe, so
* don't bother locking access to __environ */
-char *getenv(const char *var)
+char attribute_hidden *__getenv(const char *var)
{
int len;
char **ep;
@@ -39,3 +39,4 @@ char *getenv(const char *var)
return NULL;
}
+strong_alias(__getenv,getenv)