Fix. Build with old version libcurl (7.19.7) (2)
This commit is contained in:
parent
f00dbb26ed
commit
63f8f29cf7
@ -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
|
||||
);
|
||||
}
|
||||
|
||||
//}
|
||||
|
Loading…
x
Reference in New Issue
Block a user