Skip to content

Commit

Permalink
fix definition of curl_socket_t on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
StefanKarpinski committed Oct 21, 2021
1 parent 04c450c commit b9fe711
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/lC_common_h.jl
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,13 @@
const CURL = Cvoid
const CURLSH = Cvoid

const curl_socket_t = Cint
const CURL_SOCKET_BAD = -1
if Sys.iswindows()
const curl_socket_t = Base.OS_HANDLE
const CURL_SOCKET_BAD = Base.INVALID_OS_HANDLE
else
const curl_socket_t = Cint
const CURL_SOCKET_BAD = -1
end

# begin enum curl_sslbackend
const curl_sslbackend = UInt32
Expand Down

0 comments on commit b9fe711

Please sign in to comment.