summaryrefslogtreecommitdiffstats
path: root/osdep/threads.c
diff options
context:
space:
mode:
Diffstat (limited to 'osdep/threads.c')
-rw-r--r--osdep/threads.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/osdep/threads.c b/osdep/threads.c
index 5b164c5179..17642a3f89 100644
--- a/osdep/threads.c
+++ b/osdep/threads.c
@@ -24,6 +24,10 @@
#include "threads.h"
#include "timer.h"
+#if HAVE_BSD_THREAD_NAME
+#include <pthread_np.h>
+#endif
+
int mpthread_mutex_init_recursive(pthread_mutex_t *mutex)
{
pthread_mutexattr_t attr;