Skip to content

Commit

Permalink
Fix #1514 (#1515)
Browse files Browse the repository at this point in the history
  • Loading branch information
thofma authored Jul 27, 2023
1 parent 011e590 commit 9405a0d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Nemo.jl
Original file line number Diff line number Diff line change
Expand Up @@ -107,16 +107,16 @@ end

# check whether we are using flint version >= 3.0 (or some recent enough dev version),
# which changed the layout of some structs
_ptr = Libc.dlopen(libflint)
if Libc.dlsym(_ptr, :_fmpz_mod_vec_set_fmpz_vec_threaded; throw_error = false) !== nothing
_ptr = Libc.Libdl.dlopen(libflint)
if Libc.Libdl.dlsym(_ptr, :_fmpz_mod_vec_set_fmpz_vec_threaded; throw_error = false) !== nothing
const NEW_FLINT = true
libantic = libflint
libarb = libflint
libcalcium = libflint
else
const NEW_FLINT = false
end
Libc.dlclose(_ptr)
Libc.Libdl.dlclose(_ptr)

This comment has been minimized.

Copy link
@fingolfin

fingolfin Jul 27, 2023

Member

@thofma why even Libc.Libdl, shouldn't this just be Libdl.dlclose, without the Libc.?

This comment has been minimized.

Copy link
@thofma

thofma Jul 27, 2023

Author Member

I don't want to import Libdl.

This comment has been minimized.

Copy link
@benlorenz

benlorenz Jul 27, 2023

Collaborator

Line 10 in this file is using Libdl:

using Libdl


################################################################################
#
Expand Down

0 comments on commit 9405a0d

Please sign in to comment.