opnsense-ports/security/trousers/files/patch-src_include_threads.h
Franco Fichtner c788dece15 */*: sync with upstream
Taken from: FreeBSD
2016-11-20 11:10:19 +01:00

11 lines
397 B
C

--- src/include/threads.h.orig 2016-11-19 03:09:49 UTC
+++ src/include/threads.h
@@ -31,7 +31,7 @@
#define COND_SIGNAL(c) pthread_cond_signal(c)
/* thread abstractions */
-#define THREAD_ID ((THREAD_TYPE)pthread_self())
+#define THREAD_ID (long int)((THREAD_TYPE)pthread_self())
#define THREAD_TYPE pthread_t
#define THREAD_JOIN pthread_join
#define THREAD_DETACH pthread_detach