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