pkgsrc/ham/fldigi/patches/patch-ac
joerg 7bd38cfe35 Cast via ssize_t to make GCC happy. This is still somewhat abusive, but
easier than to switch to dynamically allocated int.
2009-02-15 19:41:10 +00:00

15 lines
663 B
Text

$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"