Changeset 10484


Ignore:
Timestamp:
Apr 15, 2010, 3:32:36 PM (8 years ago)
Author:
charles
Message:

(trunk libT) #3140 "Transmission doesn't build with Curl 7.15.5" -- fixed in trunk for 2.00

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/web.c

    r10306 r10484  
    2525#include "version.h" /* User-Agent */
    2626#include "web.h"
     27
     28#if LIBCURL_VERSION_NUM >= 0x070F06 /* CURLOPT_SOCKOPT* was added in 7.15.6 */
     29 #define USE_LIBCURL_SOCKOPT
     30#endif
    2731
    2832enum
     
    97101}
    98102
     103#ifdef USE_LIBCURL_SOCKOPT
    99104static int
    100105sockoptfunction( void * vtask, curl_socket_t fd, curlsocktype purpose UNUSED )
     
    116121    return 0;
    117122}
     123#endif
    118124
    119125static int
     
    160166    curl_easy_setopt( e, CURLOPT_NOSIGNAL, 1L );
    161167    curl_easy_setopt( e, CURLOPT_PRIVATE, task );
     168#ifdef USE_LIBCURL_SOCKOPT
    162169    curl_easy_setopt( e, CURLOPT_SOCKOPTFUNCTION, sockoptfunction );
    163170    curl_easy_setopt( e, CURLOPT_SOCKOPTDATA, task );
     171#endif
    164172    curl_easy_setopt( e, CURLOPT_SSL_VERIFYHOST, 0L );
    165173    curl_easy_setopt( e, CURLOPT_SSL_VERIFYPEER, 0L );
Note: See TracChangeset for help on using the changeset viewer.