(trunk libT) #2416: possible fix for 'crash in event_queue_insert' on Snow Leopard

This commit is contained in:
Charles Kerr 2009-09-23 15:28:11 +00:00
parent 0df3a4e849
commit 172d64c32c
1 changed files with 5 additions and 0 deletions

View File

@ -35,11 +35,16 @@ useCurlMultiSocketAction( void )
if( !tested )
{
#ifdef SYS_DARWIN /* for some reason, curl_multi_socket_action() + libevent
keeps crashing in event_queue_insert() on OS X 10.5 & 10.6 */
useMultiSocketAction = FALSE;
#else
curl_version_info_data * data = curl_version_info( CURLVERSION_NOW );
tr_inf( "Using libcurl %s", data->version );
/* Use curl_multi_socket_action() instead of curl_multi_perform()
* if libcurl >= 7.18.2. See http://trac.transmissionbt.com/ticket/1844 */
useMultiSocketAction = data->version_num >= 0x071202;
#endif
tested = TRUE;
}