fix major breakage in pthread_once (it was always deadlocking)
[oweals/musl.git] / src / thread / pthread_attr_getstacksize.c
index 40bbf1868ca1293bcdd5e9167aa286bec8cc5706..900dc9f53839bd112adcc78a1e9b6b210a8cf4fe 100644 (file)
@@ -2,6 +2,6 @@
 
 int pthread_attr_getstacksize(pthread_attr_t *a, size_t *size)
 {
-       *size = a->__stacksize + DEFAULT_STACK_SIZE;
+       *size = a->_a_stacksize + DEFAULT_STACK_SIZE;
        return 0;
 }