Skip to content

Commit

Permalink
Fix libuv call for Julia 1.3
Browse files Browse the repository at this point in the history
  • Loading branch information
yha committed Jan 9, 2020
1 parent fa9b88b commit 81e9056
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/ScanDir.jl
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,11 @@ function scandir(path::AbstractString)
end

# Clean up the request string
ccall(:jl_uv_fs_req_cleanup, Cvoid, (Ptr{UInt8},), uv_readdir_req)
if VERSION >= v"1.3"
ccall(:uv_fs_req_cleanup, Cvoid, (Ptr{UInt8},), uv_readdir_req)
else
ccall(:jl_uv_fs_req_cleanup, Cvoid, (Ptr{UInt8},), uv_readdir_req)
end

return entries
end
Expand Down

0 comments on commit 81e9056

Please sign in to comment.