fix debugger tracking of shared libraries on mips with PIE main program
[musl] / src / thread / pthread_attr_init.c
index 6693488..463a8d2 100644 (file)
@@ -1,8 +1,11 @@
 #include "pthread_impl.h"
-#include <string.h>
 
 int pthread_attr_init(pthread_attr_t *a)
 {
        *a = (pthread_attr_t){0};
+       __acquire_ptc();
+       a->_a_stacksize = __default_stacksize;
+       a->_a_guardsize = __default_guardsize;
+       __release_ptc();
        return 0;
 }