freebsd-ports/emulators/wine-proton/files/patch-dlls_winevulkan_vulkan.c
Alex S 519b9d1c5d emulators/wine-proton: update to 9.0-1
PR:		278940
Approved by:	maintainer/submitter
2024-05-14 22:00:47 -04:00

23 lines
585 B
C

--- 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 };