Skip to content

Commit

Permalink
add verbosity in Sys_DLOpen()
Browse files Browse the repository at this point in the history
  • Loading branch information
Ivan Bolsunov committed Jul 19, 2024
1 parent 8e2a150 commit f7f933f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/sys_posix.c
Original file line number Diff line number Diff line change
Expand Up @@ -682,13 +682,16 @@ int Sys_Script (const char *path, const char *args)

DL_t Sys_DLOpen(const char *path)
{
return dlopen(path,
DL_t ret = dlopen(path,
#ifdef __OpenBSD__
DL_LAZY
#else
RTLD_NOW
#endif
);
if (!ret)
Con_DPrintf("Sys_DLOpen: %s\n", dlerror());
return ret;
}

qbool Sys_DLClose(DL_t dl)
Expand Down

0 comments on commit f7f933f

Please sign in to comment.