summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authormarcus <marcus@FreeBSD.org>2009-10-01 18:23:50 +0000
committermarcus <marcus@FreeBSD.org>2009-10-01 18:23:50 +0000
commit77c5ec89d56544c5ccf4137d0abb89d782c46e15 (patch)
treeecd70b56f29e88ca7c19377190c5b3741a88c33a /lib
parentd5661d631d28fee99ac0a8758c56535ac2c9b01b (diff)
downloadFreeBSD-src-77c5ec89d56544c5ccf4137d0abb89d782c46e15.zip
FreeBSD-src-77c5ec89d56544c5ccf4137d0abb89d782c46e15.tar.gz
Correct the pthread stub prototype for pthread_mutexattr_settype to allow for
the type argument. This is known to fix some pthread_mutexattr_settype() invocations, especially when it comes to pulseaudio. Approved by: kib deischen (threads) MFC after: 3 days
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/gen/_pthread_stubs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc/gen/_pthread_stubs.c b/lib/libc/gen/_pthread_stubs.c
index a3e55b0..147235e 100644
--- a/lib/libc/gen/_pthread_stubs.c
+++ b/lib/libc/gen/_pthread_stubs.c
@@ -222,7 +222,7 @@ STUB_FUNC1(pthread_mutex_trylock, PJT_MUTEX_TRYLOCK, int, void *)
STUB_FUNC1(pthread_mutex_unlock, PJT_MUTEX_UNLOCK, int, void *)
STUB_FUNC1(pthread_mutexattr_destroy, PJT_MUTEXATTR_DESTROY, int, void *)
STUB_FUNC1(pthread_mutexattr_init, PJT_MUTEXATTR_INIT, int, void *)
-STUB_FUNC1(pthread_mutexattr_settype, PJT_MUTEXATTR_SETTYPE, int, void *)
+STUB_FUNC2(pthread_mutexattr_settype, PJT_MUTEXATTR_SETTYPE, int, void *, int)
STUB_FUNC2(pthread_once, PJT_ONCE, int, void *, void *)
STUB_FUNC1(pthread_rwlock_destroy, PJT_RWLOCK_DESTROY, int, void *)
STUB_FUNC2(pthread_rwlock_init, PJT_RWLOCK_INIT, int, void *, void *)
OpenPOWER on IntegriCloud