Fix. Build with old version libcurl (7.19.7) (2)

This commit is contained in:
Alexey Melnichuk 2014-08-31 11:33:10 +04:00
parent f00dbb26ed
commit 63f8f29cf7

View File

@ -4,6 +4,7 @@
#include "lcutils.h"
#include "lchttppost.h"
#include "lcshare.h"
#include <memory.h>
static const char *LCURL_ERROR_TAG = "LCURL_ERROR_TAG";
@ -677,7 +678,13 @@ static int lcurl_easy_getinfo(lua_State *L){
}
#undef OPT_ENTRY
return lcurl_fail_ex(L, p->err_mode, LCURL_ERROR_EASY, CURLE_UNKNOWN_OPTION);
return lcurl_fail_ex(L, p->err_mode, LCURL_ERROR_EASY,
#if LCURL_CURL_VER_GE(7,21,5)
CURLE_UNKNOWN_OPTION
#else
CURLE_UNKNOWN_TELNET_OPTION
#endif
);
}
//}