mirror of
https://git.freebsd.org/ports.git
synced 2025-06-24 14:10:30 -04:00
Aravis is a glib/gobject based library for video acquisition using Genicam cameras. It currently implements the gigabit ethernet and USB3 (Since Aravis 0.5.x) protocols used by industrial cameras. It also provides a basic ethernet camera simulator and a simple video viewer. WWW: https://github.com/AravisProject/aravis PR: 215907 Submitted by: rozhuk.im@gmail.com
24 lines
447 B
C
24 lines
447 B
C
--- 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
|
|
}
|
|
|
|
/**
|