diff options
author | joerg <joerg> | 2009-02-15 19:41:10 +0000 |
---|---|---|
committer | joerg <joerg> | 2009-02-15 19:41:10 +0000 |
commit | e59ff2960587ed29e2b61d3a2bfdded26af5329e (patch) | |
tree | 0cb902123d25bc3a5d8d717c2be824ed9700f714 /ham/fldigi/patches | |
parent | 5e95b5f3803435b51cfa8b400dfd98ae5b671793 (diff) | |
download | pkgsrc-e59ff2960587ed29e2b61d3a2bfdded26af5329e.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-ac | 15 |
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" |