diff options
author | Eric Sun <esun@meraki.com> | 2022-02-02 10:53:34 -0800 |
---|---|---|
committer | Damjan Marion <dmarion@0xa5.net> | 2024-05-06 11:55:39 +0000 |
commit | ee98c9dd8ed82334f0082778e56ef3a120db70e2 (patch) | |
tree | 4b7da024e2c91cbb38b4966eda5379c456989e0b /src/vlib/unix | |
parent | c353b3622bd25e51b650fed3b31d1897235ca573 (diff) |
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>
Diffstat (limited to 'src/vlib/unix')
-rw-r--r-- | src/vlib/unix/plugin.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/vlib/unix/plugin.c b/src/vlib/unix/plugin.c index fd3a050b944..5cac9abc8fe 100644 --- a/src/vlib/unix/plugin.c +++ b/src/vlib/unix/plugin.c @@ -306,8 +306,12 @@ process_reg: } vec_free (version_required); +#if defined(RTLD_DEEPBIND) handle = dlopen ((char *) pi->filename, RTLD_LAZY | (reg->deep_bind ? RTLD_DEEPBIND : 0)); +#else + handle = dlopen ((char *) pi->filename, RTLD_LAZY); +#endif if (handle == 0) { |