changes to kernel sigaction struct handling in preparation for mips port
[musl] / src / internal / libc.c
index 5e8e9d9..c1e21ca 100644 (file)
@@ -1,3 +1,15 @@
 #include "libc.h"
 
-struct libc libc;
+#ifdef USE_LIBC_ACCESSOR
+struct __libc *__libc_loc()
+{
+       static struct __libc __libc;
+       return &__libc;
+}
+#else
+struct __libc __libc;
+#endif
+
+#ifdef BROKEN_VISIBILITY
+__asm__(".hidden __libc");
+#endif