summaryrefslogtreecommitdiff
path: root/emulators/wine-devel/patches/patch-dlls_winepulse.drv_mmdevdrv.c
diff options
context:
space:
mode:
Diffstat (limited to 'emulators/wine-devel/patches/patch-dlls_winepulse.drv_mmdevdrv.c')
-rw-r--r--emulators/wine-devel/patches/patch-dlls_winepulse.drv_mmdevdrv.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/emulators/wine-devel/patches/patch-dlls_winepulse.drv_mmdevdrv.c b/emulators/wine-devel/patches/patch-dlls_winepulse.drv_mmdevdrv.c
new file mode 100644
index 00000000000..bc7556d81c3
--- /dev/null
+++ b/emulators/wine-devel/patches/patch-dlls_winepulse.drv_mmdevdrv.c
@@ -0,0 +1,16 @@
+$NetBSD: patch-dlls_winepulse.drv_mmdevdrv.c,v 1.1 2016/09/15 09:25:53 maya Exp $
+
+Check for pthread_mutexattr_setprotocol.
+
+--- dlls/winepulse.drv/mmdevdrv.c.orig 2016-06-10 14:04:01.000000000 +0000
++++ dlls/winepulse.drv/mmdevdrv.c
+@@ -98,7 +98,9 @@ BOOL WINAPI DllMain(HINSTANCE dll, DWORD
+ DisableThreadLibraryCalls(dll);
+
+ pthread_mutexattr_init(&attr);
++#ifdef HAVE_PTHREAD_MUTEXATTR_SETPROTOCOL
+ pthread_mutexattr_setprotocol(&attr, PTHREAD_PRIO_INHERIT);
++#endif
+
+ if (pthread_mutex_init(&pulse_lock, &attr) != 0)
+ pthread_mutex_init(&pulse_lock, NULL);