forked from freebsd/freebsd-ports
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
lang/julia: unbreak build when using libcurl 7.81
See: * JuliaLang/Downloads.jl#172 * conda-forge/julia-feedstock#169 (comment) PR: 261417 Reported by: [email protected]
- Loading branch information
Showing
2 changed files
with
23 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
...a/files/patch-stdlib_Downloads-26d79afcde9cf837a331fce023b31f1d3699700c_src_Curl_Multi.jl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
--- stdlib/Downloads-26d79afcde9cf837a331fce023b31f1d3699700c/src/Curl/Multi.jl.orig 2021-10-26 22:48:36 UTC | ||
+++ stdlib/Downloads-26d79afcde9cf837a331fce023b31f1d3699700c/src/Curl/Multi.jl | ||
@@ -142,12 +142,7 @@ function timer_callback( | ||
)::Cint | ||
multi = unsafe_pointer_to_objref(multi_p)::Multi | ||
@assert multi_h == multi.handle | ||
- if timeout_ms == 0 | ||
- lock(multi.lock) do | ||
- @check curl_multi_socket_action(multi.handle, CURL_SOCKET_TIMEOUT, 0) | ||
- check_multi_info(multi) | ||
- end | ||
- elseif timeout_ms >= 0 | ||
+ if timeout_ms >= 0 | ||
timeout_cb = @cfunction(timeout_callback, Cvoid, (Ptr{Cvoid},)) | ||
uv_timer_start(multi.timer, timeout_cb, max(1, timeout_ms), 0) | ||
elseif timeout_ms == -1 |