aboutsummaryrefslogtreecommitdiff
path: root/emulators/wine-proton/files/patch-dlls_winevulkan_vulkan.c
blob: b0f693c0909c6c68bfe2ccba1aea930ac476ff23 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
--- dlls/winevulkan/vulkan.c.orig
+++ dlls/winevulkan/vulkan.c
@@ -30,6 +30,7 @@
 #include <stdio.h>
 #include <assert.h>
 #include <limits.h>
+#include <pthread_np.h>
 #ifdef HAVE_SYS_SYSCALL_H
 # include <sys/syscall.h>
 #endif
@@ -4332,11 +4333,7 @@ signal_op_complete:
 
 void *signaller_worker(void *arg)
 {
-#ifdef HAVE_SYS_SYSCALL_H
-    int unix_tid = syscall( __NR_gettid );
-#else
-    int unix_tid = -1;
-#endif
+    int unix_tid = pthread_getthreadid_np();
     struct wine_device *device = arg;
     struct wine_semaphore *sem;
     VkSemaphoreWaitInfo wait_info = { 0 };