- Timestamp:
- May 1, 2010, 3:58:59 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/1.9x/libtransmission/web.c
r10306 r10572 25 25 #include "version.h" /* User-Agent */ 26 26 #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 27 31 28 32 enum … … 97 101 } 98 102 103 #ifdef USE_LIBCURL_SOCKOPT 99 104 static int 100 105 sockoptfunction( void * vtask, curl_socket_t fd, curlsocktype purpose UNUSED ) … … 116 121 return 0; 117 122 } 123 #endif 118 124 119 125 static int … … 160 166 curl_easy_setopt( e, CURLOPT_NOSIGNAL, 1L ); 161 167 curl_easy_setopt( e, CURLOPT_PRIVATE, task ); 168 #ifdef USE_LIBCURL_SOCKOPT 162 169 curl_easy_setopt( e, CURLOPT_SOCKOPTFUNCTION, sockoptfunction ); 163 170 curl_easy_setopt( e, CURLOPT_SOCKOPTDATA, task ); 171 #endif 164 172 curl_easy_setopt( e, CURLOPT_SSL_VERIFYHOST, 0L ); 165 173 curl_easy_setopt( e, CURLOPT_SSL_VERIFYPEER, 0L );
Note: See TracChangeset
for help on using the changeset viewer.