mirror of
https://gitlab.com/cryptsetup/cryptsetup.git
synced 2025-12-05 16:00:05 +01:00
Use dlsym() for token load if dlvsym() is not available.
To be discussed. Anyway, we need to support distros with musl...
This commit is contained in:
@@ -63,9 +63,13 @@ static void *token_dlvsym(struct crypt_device *cd,
|
||||
char *error;
|
||||
void *sym;
|
||||
|
||||
#ifdef HAVE_DLVSYM
|
||||
log_dbg(cd, "Loading symbol %s@%s.", symbol, version);
|
||||
|
||||
sym = dlvsym(handle, symbol, version);
|
||||
#else
|
||||
log_dbg(cd, "Loading default version of symbol %s.", symbol);
|
||||
sym = dlsym(handle, symbol);
|
||||
#endif
|
||||
error = dlerror();
|
||||
|
||||
if (error)
|
||||
|
||||
Reference in New Issue
Block a user