0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-12-26 15:33:54 +01:00

ircd::mods: Add preconditions around dlsym hook inclusion.

This commit is contained in:
Jason Volk 2019-05-03 15:15:09 -07:00
parent 84ed175ffe
commit 542f8f421a

View file

@ -47,12 +47,23 @@ ircd::mods::autoload
extern "C" void *
__libc_dlsym(void *, const char *);
#ifdef IRCD_MODS_HOOK_DLSYM
extern "C" void *
dlsym(void *const handle,
const char *const symbol)
{
#ifdef RB_DEBUG_MODS_HOOK_DLSYM
ircd::log::debug
{
ircd::mods::log, "handle:%p symbol lookup '%s'",
handle,
symbol
};
#endif
return __libc_dlsym(handle, symbol);
}
#endif
//
// mods::mod