[PATCH 1/2] Set `CURLOPT_NOSIGNAL' to 1 to avoid crashes with multithreaded DNS

2013-05-04 Thread Frank Terbeck
This fixes http://bugs.xmms2.org/view.php?id=2546 Erik Massop noted: In unix systems, CURLOPT_NOSIGNAL need to be used if you're using the default resolver, as it will use signals to time-out otherwise and signals and threads don't mix. But ideally, you switch to using the c-ares

[PATCH 2/2] Include stdio.h and add two helper macros

2013-05-04 Thread Frank Terbeck
Since 22d52344e1745068e2bc7dd716bf9ec5dc7b8a06 in xmms2, you need to include stdlib.h and stdio.h yourself. Also, the macros XPOINTER_TO_INT() and XINT_TO_POINTER() are now in a private header rather than the public one that gets installed to the system. That makes it a little hard to use said