aboutsummaryrefslogtreecommitdiffstats
path: root/Alc
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2014-04-17 19:01:12 -0700
committerChris Robinson <[email protected]>2014-04-17 19:01:12 -0700
commit528c8c5e774b28b74393b5517d8bee268f1d9624 (patch)
tree7d9193cc8f0fa87beb199875eaf33e206298f92d /Alc
parent8a00c240126d4138df21630f630da4c4f551000d (diff)
Check explicitly for pthread_mutexattr_setkind_np before use
Diffstat (limited to 'Alc')
-rw-r--r--Alc/threads.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Alc/threads.c b/Alc/threads.c
index 3a0d1a22..e1d071ac 100644
--- a/Alc/threads.c
+++ b/Alc/threads.c
@@ -392,7 +392,7 @@ int almtx_init(almtx_t *mtx, int type)
if(type == almtx_recursive)
{
ret = pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
-#ifdef HAVE_PTHREAD_NP_H
+#ifdef HAVE_PTHREAD_MUTEXATTR_SETKIND_NP
if(ret != 0)
ret = pthread_mutexattr_setkind_np(&attr, PTHREAD_MUTEX_RECURSIVE);
#endif