make pthread attribute types structs, even when they just have one field
[musl] / src / thread / pthread_barrierattr_setpshared.c
index 1edc95d..b391461 100644 (file)
@@ -2,6 +2,6 @@
 
 int pthread_barrierattr_setpshared(pthread_barrierattr_t *a, int pshared)
 {
-       *a = pshared ? INT_MIN : 0;
+       a->__attr = pshared ? INT_MIN : 0;
        return 0;
 }