From 414ce5018d2cdf0dc8ebe880dc5350f3513420ec Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Mon, 10 Aug 2015 21:39:01 +0200 Subject: getenv: allow overwriting of function This fixes static compile issues of sudo, because sudo uses it's own getenv implementation. --- libc/stdlib/getenv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libc/stdlib/getenv.c b/libc/stdlib/getenv.c index d5db1785c..9b04d0fab 100644 --- a/libc/stdlib/getenv.c +++ b/libc/stdlib/getenv.c @@ -27,4 +27,4 @@ char *getenv(const char *var) } return NULL; } -libc_hidden_def(getenv) +libc_hidden_weak(getenv) -- cgit v1.2.3