Skip to content

Commit 9c6efd6

Browse files
vtjnashstaticfloat
andauthored
remove extraneous using .Libdl in Libc (#50672)
From f935125 --------- Co-authored-by: Elliot Saba <staticfloat@gmail.com>
1 parent c777c71 commit 9c6efd6

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

base/libc.jl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -487,6 +487,5 @@ geteuid() = ccall(:jl_geteuid, Culong, ())
487487

488488
# Include dlopen()/dlpath() code
489489
include("libdl.jl")
490-
using .Libdl
491490

492491
end # module

base/loading.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1027,8 +1027,8 @@ function find_all_in_cache_path(pkg::PkgId)
10271027
end
10281028
end
10291029

1030-
ocachefile_from_cachefile(cachefile) = string(chopsuffix(cachefile, ".ji"), ".", Base.Libc.dlext)
1031-
cachefile_from_ocachefile(cachefile) = string(chopsuffix(cachefile, ".$(Base.Libc.dlext)"), ".ji")
1030+
ocachefile_from_cachefile(cachefile) = string(chopsuffix(cachefile, ".ji"), ".", Libc.Libdl.dlext)
1031+
cachefile_from_ocachefile(cachefile) = string(chopsuffix(cachefile, ".$(Libc.Libdl.dlext)"), ".ji")
10321032

10331033

10341034
# use an Int counter so that nested @time_imports calls all remain open

0 commit comments

Comments
 (0)