Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix definition of curl_socket_t on Windows #108

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
1 change: 0 additions & 1 deletion src/lC_defines_h.jl
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ const CURL_SUFFIX_CURL_OFF_TU = Culong
const CURL_TYPEOF_CURL_SOCKLEN_T = socklen_t
const CURL_PULL_SYS_TYPES_H = 1
const CURL_PULL_SYS_SOCKET_H = 1
const CURL_SOCKET_BAD = -1
const CURLSSLBACKEND_LIBRESSL = CURLSSLBACKEND_OPENSSL
const CURLSSLBACKEND_BORINGSSL = CURLSSLBACKEND_OPENSSL
const CURLSSLBACKEND_CYASSL = CURLSSLBACKEND_WOLFSSL
Expand Down