Explorar o código

getenv: allow overwriting of function

This fixes static compile issues of sudo, because sudo
uses it's own getenv implementation.
Waldemar Brodkorb %!s(int64=10) %!d(string=hai) anos
pai
achega
414ce5018d
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      libc/stdlib/getenv.c

+ 1 - 1
libc/stdlib/getenv.c

@@ -27,4 +27,4 @@ char *getenv(const char *var)
     }
     return NULL;
 }
-libc_hidden_def(getenv)
+libc_hidden_weak(getenv)