From: Ulrich Drepper Date: Thu, 17 Apr 1997 23:26:33 +0000 (+0000) Subject: [_LIBC]: Define __clearenv and make clearenv a weak alias. X-Git-Tag: cvs/libc20x-ud-970417~15 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=14f82daac675d66ffa72b38982b267087201de33;p=thirdparty%2Fglibc.git [_LIBC]: Define __clearenv and make clearenv a weak alias. --- diff --git a/sysdeps/generic/setenv.c b/sysdeps/generic/setenv.c index 94dc7472ece..11b5906a9d3 100644 --- a/sysdeps/generic/setenv.c +++ b/sysdeps/generic/setenv.c @@ -56,6 +56,12 @@ __libc_lock_define_initialized (static, envlock) # define UNLOCK #endif +/* In the GNU C library we must keep the namespace clean. */ +#ifdef _LIBC +# define clearenv __clearenv +#endif + + /* If this variable is not a null pointer we allocated the current environment. */ static char **last_environ; @@ -188,3 +194,7 @@ clearenv () return 0; } +#ifdef _LIBC +# undef clearenv +weak_alias (__clearenv, clearenv) +#endif