Skip to content

Commit

Permalink
Fix compatibility for libcurl 7.67 and below
Browse files Browse the repository at this point in the history
Signed-off-by: owent <admin@owent.net>
  • Loading branch information
owent committed Apr 6, 2022
1 parent 1cc0ec4 commit 393e298
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion ext/src/http/client/curl/http_operation_curl.cc
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,12 @@ int HttpOperation::OnProgressCallback(void *clientp,
return -1;
}

// CURL_PROGRESSFUNC_CONTINUE is added in 7.68.0
# if defined(CURL_PROGRESSFUNC_CONTINUE)
return CURL_PROGRESSFUNC_CONTINUE;
# else
return 0;
# endif
}
#else
int HttpOperation::OnProgressCallback(void *clientp,
Expand All @@ -205,7 +210,7 @@ int HttpOperation::OnProgressCallback(void *clientp,
return -1;
}

return CURL_PROGRESSFUNC_CONTINUE;
return 0;
}
#endif

Expand Down

0 comments on commit 393e298

Please sign in to comment.