vlib: fix use of RTLD_DEEPBIND for musl
RTLD_DEEPBIND only exists in glibc. If it isn't defined we can just ignore it. Type: fix Change-Id: I5b2d65b2462020808635b057d5f7665fb75a2444 Signed-off-by: Pierre Pfister <ppfister@cisco.com> Signed-off-by: Eric Sun <esun@meraki.com>
This commit is contained in:
@ -306,8 +306,12 @@ process_reg:
|
|||||||
}
|
}
|
||||||
vec_free (version_required);
|
vec_free (version_required);
|
||||||
|
|
||||||
|
#if defined(RTLD_DEEPBIND)
|
||||||
handle = dlopen ((char *) pi->filename,
|
handle = dlopen ((char *) pi->filename,
|
||||||
RTLD_LAZY | (reg->deep_bind ? RTLD_DEEPBIND : 0));
|
RTLD_LAZY | (reg->deep_bind ? RTLD_DEEPBIND : 0));
|
||||||
|
#else
|
||||||
|
handle = dlopen ((char *) pi->filename, RTLD_LAZY);
|
||||||
|
#endif
|
||||||
|
|
||||||
if (handle == 0)
|
if (handle == 0)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user