aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/generic/setenv.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/generic/setenv.c')
-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 94dc747..11b5906 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