dummy implementation of set_thread_area
[musl] / src / thread / pthread_mutex_init.c
index 6e23df1..75ddf02 100644 (file)
@@ -3,6 +3,6 @@
 int pthread_mutex_init(pthread_mutex_t *m, const pthread_mutexattr_t *a)
 {
        memset(m, 0, sizeof *m);
-       if (a) m->_m_type = *a & 3;
+       if (a) m->_m_type = *a & 7;
        return 0;
 }