blob: 2dd43e374d4e4e03c40d4089c5d231646c0ab824 (
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
24
|
--- src/arvrealtime.c.orig 2017-04-10 13:30:09 UTC
+++ src/arvrealtime.c
@@ -27,6 +27,8 @@
***/
+#include <sys/param.h>
+
#include <arvrealtimeprivate.h>
#include <arvdebug.h>
#include <memory.h>
@@ -219,7 +221,12 @@ arv_rtkit_make_high_priority (GDBusConne
#endif
static pid_t _gettid(void) {
+#ifdef __linux__
return (pid_t) syscall(SYS_gettid);
+#endif
+#ifdef BSD
+ return (pid_t) pthread_self();
+#endif
}
/**
|