work around "signal loses thread pointer" issue with "approach 2"
[oweals/musl.git] / src / thread / pthread_attr_setguardsize.c
index e0e8d3fb1033df951264bbd560c0b7559425b896..9f21d24702fbf3874c26e196943653166bb3f818 100644 (file)
@@ -3,6 +3,6 @@
 int pthread_attr_setguardsize(pthread_attr_t *a, size_t size)
 {
        if (size > SIZE_MAX/8) return EINVAL;
-       a->__guardsize = size - DEFAULT_GUARD_SIZE;
+       a->_a_guardsize = size - DEFAULT_GUARD_SIZE;
        return 0;
 }