freebsd-ports/multimedia/xbmc-addon-xvdr/files/patch-src-xvdr-thread.h
Juergen Lock 6e8546ac15 This is a PVR add-on for XBMC to add VDR (http://www.cadsoft.de/vdr)
as a TV/PVR Backend to XBMC.

It adds support for Live TV watching, replaying of Recordings,
programming Timers and EPG TV Guide to use on same computer or over
the Network.

This add-on requires the installed "vdr-plugin-xvdr" plugin on the
VDR server.  VDR itself doen't need any patches or modification to
use all the current features.

WWW: https://github.com/pipelka/xbmc-addon-xvdr
2011-12-18 18:38:56 +00:00

23 lines
581 B
C++

--- a/src/xvdr/thread.h
+++ b/src/xvdr/thread.h
@@ -77,7 +77,11 @@ public:
void Unlock(void);
};
+#ifdef __FreeBSD__
+typedef pthread_t tThreadId;
+#else
typedef pid_t tThreadId;
+#endif
class cThread {
friend class cThreadLock;
@@ -124,7 +128,7 @@ public:
bool Active(void);
///< Checks whether the thread is still alive.
static tThreadId ThreadId(void);
- static tThreadId IsMainThread(void) { return ThreadId() == mainThreadId; }
+ static int IsMainThread(void) { return ThreadId() == mainThreadId; }
static void SetMainThreadId(void);
};