summaryrefslogtreecommitdiff
path: root/sysdeps/generic
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1997-04-17 23:26:33 +0000
committerUlrich Drepper <drepper@redhat.com>1997-04-17 23:26:33 +0000
commit14f82daac675d66ffa72b38982b267087201de33 (patch)
treec48060f5fadc06fc11658dc70fd563f286e78786 /sysdeps/generic
parent0c07dfee2ce91aef28b7354aebe212769c3acf4c (diff)
[_LIBC]: Define __clearenv and make clearenv a weak alias.
Diffstat (limited to 'sysdeps/generic')
-rw-r--r--sysdeps/generic/setenv.c10
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