Skip to content

Commit

Permalink
Try to fix Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
timholy committed Mar 8, 2022
1 parent 263d418 commit 4698e4b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/staticdata.c
Original file line number Diff line number Diff line change
Expand Up @@ -2473,9 +2473,9 @@ JL_DLLEXPORT jl_value_t *jl_restore_system_image_data(const char *buf, size_t le

JL_DLLEXPORT jl_value_t *jl_restore_package_image_from_file(const char *fname)
{
void *pkgimg_handle = dlopen(fname, RTLD_LAZY);
void *pkgimg_handle = jl_dlopen(fname, JL_RTLD_LAZY);
if (!pkgimg_handle)
jl_errorf("Error opening package file %s: %s\n", fname, dlerror());
jl_errorf("Error opening package file %s: %s\n", fname, jl_dlerror());
const char *pkgimg_data;
jl_dlsym(pkgimg_handle, "jl_system_image_data", (void **)&pkgimg_data, 1);
size_t *plen;
Expand Down

0 comments on commit 4698e4b

Please sign in to comment.