Skip to content

Commit e7f83e7

Browse files
committed
Fix. CURLM_ADDED_ALREADY defined only in cURL 7.32.1
1 parent abdef03 commit e7f83e7

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/lcmulti.c

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,13 @@ static int lcurl_multi_add_handle(lua_State *L){
110110
CURLMcode code;
111111

112112
if(e->multi){
113-
return lcurl_fail_ex(L, p->err_mode, LCURL_ERROR_MULTI, CURLM_ADDED_ALREADY);
113+
return lcurl_fail_ex(L, p->err_mode, LCURL_ERROR_MULTI,
114+
#if LCURL_CURL_VER_GE(7,32,1)
115+
CURLM_ADDED_ALREADY
116+
#else
117+
CURLM_BAD_EASY_HANDLE
118+
#endif
119+
);
114120
}
115121

116122
// From doc:

0 commit comments

Comments
 (0)