fix broken thread list unlocking after fork
[musl] / src / internal / libc.c
index 59d302d..cb05181 100644 (file)
@@ -1,11 +1,9 @@
 #include "libc.h"
 
-#ifdef USE_LIBC_ACCESSOR
-struct __libc *__libc_loc()
-{
-       static struct __libc __libc;
-       return &__libc;
-}
-#else
-struct __libc __libc ATTR_LIBC_VISIBILITY;
-#endif
+struct __libc __libc;
+
+size_t __hwcap;
+char *__progname=0, *__progname_full=0;
+
+weak_alias(__progname, program_invocation_short_name);
+weak_alias(__progname_full, program_invocation_name);