From 5d2c29976a2c5468de139a10859a8ac3b8951da8 Mon Sep 17 00:00:00 2001 From: "mooredan@suncup.net" Date: Fri, 26 Nov 2010 22:44:56 +0000 Subject: [PATCH] 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 --- src/s3fs.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/s3fs.cpp b/src/s3fs.cpp index 6064fef..f193977 100644 --- a/src/s3fs.cpp +++ b/src/s3fs.cpp @@ -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