Browse Source

Merge branch 'curl-pre-7.21.5' into release

Brad King 9 years ago
parent
commit
b162dd9ea0
1 changed files with 5 additions and 0 deletions
  1. 5 0
      Source/cmCurl.cxx

+ 5 - 0
Source/cmCurl.cxx

@@ -12,6 +12,11 @@
 #include "cmCurl.h"
 #include "cmSystemTools.h"
 
+// curl versions before 7.21.5 did not provide this error code
+#if defined(LIBCURL_VERSION_NUM) && LIBCURL_VERSION_NUM < 0x071505
+# define CURLE_NOT_BUILT_IN 4
+#endif
+
 #define check_curl_result(result, errstr)                               \
   if (result != CURLE_OK && result != CURLE_NOT_BUILT_IN)               \
     {                                                                   \