diff options
author | Ulrich Drepper <drepper@redhat.com> | 1997-04-17 23:26:33 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 1997-04-17 23:26:33 +0000 |
commit | 14f82daac675d66ffa72b38982b267087201de33 (patch) | |
tree | c48060f5fadc06fc11658dc70fd563f286e78786 /sysdeps/generic | |
parent | 0c07dfee2ce91aef28b7354aebe212769c3acf4c (diff) | |
download | glibc-14f82daac675d66ffa72b38982b267087201de33.tar glibc-14f82daac675d66ffa72b38982b267087201de33.tar.gz glibc-14f82daac675d66ffa72b38982b267087201de33.tar.bz2 glibc-14f82daac675d66ffa72b38982b267087201de33.zip |
[_LIBC]: Define __clearenv and make clearenv a weak alias.
Diffstat (limited to 'sysdeps/generic')
-rw-r--r-- | sysdeps/generic/setenv.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/sysdeps/generic/setenv.c b/sysdeps/generic/setenv.c index 94dc7472ec..11b5906a9d 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 |