dummy implementation of set_thread_area
[musl] / src / thread / pthread_attr_setdetachstate.c
index d23b477..1b71278 100644 (file)
@@ -2,6 +2,7 @@
 
 int pthread_attr_setdetachstate(pthread_attr_t *a, int state)
 {
-       a->__detach = state;
+       if (state > 1U) return EINVAL;
+       a->_a_detach = state;
        return 0;
 }