]> git.proxmox.com Git - wasi-libc.git/blobdiff - libc-top-half/musl/src/thread/pthread_attr_get.c
Update to musl 1.2.2.
[wasi-libc.git] / libc-top-half / musl / src / thread / pthread_attr_get.c
index 4aa5afdb2881c6ae3aa344784b83b619d76e5a6b..f12ff442548dd65e85410a2606bb2904f511b256 100644 (file)
@@ -70,7 +70,7 @@ int pthread_condattr_getpshared(const pthread_condattr_t *restrict a, int *restr
 
 int pthread_mutexattr_getprotocol(const pthread_mutexattr_t *restrict a, int *restrict protocol)
 {
-       *protocol = PTHREAD_PRIO_NONE;
+       *protocol = a->__attr / 8U % 2;
        return 0;
 }
 int pthread_mutexattr_getpshared(const pthread_mutexattr_t *restrict a, int *restrict pshared)