From 234ec471745291ff99705203deb89e0f86bcb5d6 Mon Sep 17 00:00:00 2001 From: Jan Beich Date: Mon, 17 Jun 2019 08:36:27 +0000 Subject: Switch DragonFly to pthread_getthreadid_np in my ports https://github.com/DragonFlyBSD/DragonFlyBSD/commit/c0f25c26521a --- multimedia/libva-intel-media-driver/files/patch-thread-id | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'multimedia/libva-intel-media-driver') diff --git a/multimedia/libva-intel-media-driver/files/patch-thread-id b/multimedia/libva-intel-media-driver/files/patch-thread-id index 9ca236f34b1e..2f320db91915 100644 --- a/multimedia/libva-intel-media-driver/files/patch-thread-id +++ b/multimedia/libva-intel-media-driver/files/patch-thread-id @@ -22,7 +22,7 @@ media_driver/linux/common/cm/cm_innerdef_os.h:98:37: note: expanded from macro ' +#if defined(__linux__) #include #include -+#elif defined(__FreeBSD__) ++#elif defined(__DragonFly__) || defined(__FreeBSD__) +#include +#elif defined(__NetBSD__) +#include @@ -32,15 +32,13 @@ media_driver/linux/common/cm/cm_innerdef_os.h:98:37: note: expanded from macro ' #include //Require DRM VMAP patch, -@@ -95,5 +103,15 @@ inline void GetLocalTime(PSYSTEMTIME psystime) +@@ -95,5 +103,13 @@ inline void GetLocalTime(PSYSTEMTIME psystime) #endif #define CmGetCurProcessId() getpid() +#if defined(__linux__) #define CmGetCurThreadId() syscall(SYS_gettid) -+#elif defined(__DragonFly__) -+#define CmGetCurThreadId() lwp_gettid() -+#elif defined(__FreeBSD__) ++#elif defined(__DragonFly__) || defined(__FreeBSD__) +#define CmGetCurThreadId() pthread_getthreadid_np() +#elif defined(__NetBSD__) +#define CmGetCurThreadId() _lwp_self() -- cgit v1.2.3