summaryrefslogtreecommitdiff
path: root/ham/fldigi/patches
diff options
context:
space:
mode:
authorjoerg <joerg>2009-02-15 19:41:10 +0000
committerjoerg <joerg>2009-02-15 19:41:10 +0000
commit8d50dcf9a9e1cd86cb98d437937aaa2d33dd7c4d (patch)
tree0cb902123d25bc3a5d8d717c2be824ed9700f714 /ham/fldigi/patches
parent0d92076e4d2f4ded16955555b8022d2e969246d6 (diff)
downloadpkgsrc-8d50dcf9a9e1cd86cb98d437937aaa2d33dd7c4d.tar.gz
Cast via ssize_t to make GCC happy. This is still somewhat abusive, but
easier than to switch to dynamically allocated int.
Diffstat (limited to 'ham/fldigi/patches')
-rw-r--r--ham/fldigi/patches/patch-ac15
1 files changed, 15 insertions, 0 deletions
diff --git a/ham/fldigi/patches/patch-ac b/ham/fldigi/patches/patch-ac
new file mode 100644
index 00000000000..afc718e150b
--- /dev/null
+++ b/ham/fldigi/patches/patch-ac
@@ -0,0 +1,15 @@
+$NetBSD: patch-ac,v 1.1 2009/02/15 19:41:10 joerg Exp $
+
+--- src/include/threads.h.orig 2009-02-15 19:59:36.000000000 +0100
++++ src/include/threads.h
+@@ -87,8 +87,8 @@ enum { UNKNOWN_TID = -1, TRX_TID, QRZ_TI
+ #else
+ extern pthread_key_t thread_id_;
+ # define CREATE_THREAD_ID() pthread_key_create(&thread_id_, 0);
+-# define SET_THREAD_ID(x) pthread_setspecific(thread_id_, (void *)(x))
+-# define GET_THREAD_ID() (int)pthread_getspecific(thread_id_)
++# define SET_THREAD_ID(x) pthread_setspecific(thread_id_, (const void *)(ssize_t)(x))
++# define GET_THREAD_ID() (int)(ssize_t)pthread_getspecific(thread_id_)
+ #endif // USE_TLS
+
+ #include "fl_lock.h"