mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2024-12-23 01:08:54 +00:00
CentOS 5.5 used curl version 7.15 and CURLE_PEER_FAILED_VERIFICATION is not
defined. Added #defines around appropriate code. Latest revision now compiles and works on CentOS git-svn-id: http://s3fs.googlecode.com/svn/trunk@271 df820570-a93a-0410-bd06-b72b767a4274
This commit is contained in:
parent
8b10de5559
commit
5d2c29976a
@ -363,6 +363,7 @@ static int my_curl_easy_perform(CURL* curl, FILE* f = 0) {
|
||||
exit(1);
|
||||
break;
|
||||
|
||||
#ifdef CURLE_PEER_FAILED_VERIFICATION
|
||||
case CURLE_PEER_FAILED_VERIFICATION:
|
||||
first_pos = bucket.find_first_of(".");
|
||||
if (first_pos != string::npos) {
|
||||
@ -379,6 +380,7 @@ static int my_curl_easy_perform(CURL* curl, FILE* f = 0) {
|
||||
}
|
||||
exit(1);
|
||||
break;
|
||||
#endif
|
||||
|
||||
default:
|
||||
// Unknown error - return
|
||||
@ -1815,6 +1817,7 @@ static void s3fs_check_service(void) {
|
||||
exit(1);
|
||||
break;
|
||||
|
||||
#ifdef CURLE_PEER_FAILED_VERIFICATION
|
||||
case CURLE_PEER_FAILED_VERIFICATION:
|
||||
fprintf (stderr, "%s: s3fs_check_service: curlCode: %i -- %s\n",
|
||||
program_name.c_str(),
|
||||
@ -1822,6 +1825,7 @@ static void s3fs_check_service(void) {
|
||||
curl_easy_strerror(curlCode));
|
||||
exit(1);
|
||||
break;
|
||||
#endif
|
||||
|
||||
default:
|
||||
// Unknown error - return
|
||||
@ -2010,6 +2014,7 @@ static void s3fs_check_service(void) {
|
||||
exit(1);
|
||||
break;
|
||||
|
||||
#ifdef CURLE_PEER_FAILED_VERIFICATION
|
||||
case CURLE_PEER_FAILED_VERIFICATION:
|
||||
first_pos = bucket.find_first_of(".");
|
||||
if (first_pos != string::npos) {
|
||||
@ -2026,6 +2031,7 @@ static void s3fs_check_service(void) {
|
||||
}
|
||||
exit(1);
|
||||
break;
|
||||
#endif
|
||||
|
||||
default:
|
||||
// Unknown error - return
|
||||
|
Loading…
Reference in New Issue
Block a user