summaryrefslogtreecommitdiff
path: root/libc/stdlib/getenv.c
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@uclibc-ng.org>2015-08-10 21:39:01 +0200
committerWaldemar Brodkorb <wbx@uclibc-ng.org>2015-08-14 23:31:58 +0200
commit414ce5018d2cdf0dc8ebe880dc5350f3513420ec (patch)
tree2322c54f0d1e529d21eb50d1074f46f3035b4603 /libc/stdlib/getenv.c
parent6cf35f84045f38f067365623886fecff16ca92f9 (diff)
getenv: allow overwriting of function
This fixes static compile issues of sudo, because sudo uses it's own getenv implementation.
Diffstat (limited to 'libc/stdlib/getenv.c')
-rw-r--r--libc/stdlib/getenv.c2
1 files changed, 1 insertions, 1 deletions
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)