[libdispatch-dev] Solaris portability, dispatch.h - PATCH [6/6]

Paolo Bonzini bonzini at gnu.org
Fri Nov 6 10:52:31 PST 2009

On 11/06/2009 04:01 PM, Joakim Johansson wrote:
> There is a type mismatch here agin, pthread_t is not a pointer on
> Solaris, but an unsigned int, so we need a different formatting string.
> We also need to include additional headers.

There is already a cast:

> (void *)_dispatch_thread_self(), ##args); \

so the _dispatch_debug definition should be okay for Solaris too.  If 
you have a warning, change it to (void*)(long)_dispatch_thread_self().


More information about the libdispatch-dev mailing list