aboutsummaryrefslogtreecommitdiff
path: root/multimedia/libva-intel-media-driver
diff options
context:
space:
mode:
authorJan Beich <jbeich@FreeBSD.org>2019-06-17 08:36:27 +0000
committerJan Beich <jbeich@FreeBSD.org>2019-06-17 08:36:27 +0000
commit234ec471745291ff99705203deb89e0f86bcb5d6 (patch)
treef60c514d9b374340114b9a1e61a4e3a7a149de64 /multimedia/libva-intel-media-driver
parentedc42f3c38101cea58c0f69ccf772c5103697878 (diff)
downloadports-234ec471745291ff99705203deb89e0f86bcb5d6.tar.gz
ports-234ec471745291ff99705203deb89e0f86bcb5d6.zip
Notes
Diffstat (limited to 'multimedia/libva-intel-media-driver')
-rw-r--r--multimedia/libva-intel-media-driver/files/patch-thread-id8
1 files changed, 3 insertions, 5 deletions
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 <sys/types.h>
#include <sys/syscall.h>
-+#elif defined(__FreeBSD__)
++#elif defined(__DragonFly__) || defined(__FreeBSD__)
+#include <pthread_np.h>
+#elif defined(__NetBSD__)
+#include <lwp.h>
@@ -32,15 +32,13 @@ media_driver/linux/common/cm/cm_innerdef_os.h:98:37: note: expanded from macro '
#include <unistd.h>
//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()