]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
[_LIBC]: Define __clearenv and make clearenv a weak alias.
authorUlrich Drepper <drepper@redhat.com>
Thu, 17 Apr 1997 23:26:33 +0000 (23:26 +0000)
committerUlrich Drepper <drepper@redhat.com>
Thu, 17 Apr 1997 23:26:33 +0000 (23:26 +0000)
sysdeps/generic/setenv.c

index 94dc7472ece3d31f836623179d46c16a98d0496a..11b5906a9d3f355148169dbdb0e7784cacf3bf62 100644 (file)
@@ -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