mirror of
https://gitlab.com/cryptsetup/cryptsetup.git
synced 2025-12-05 16:00:05 +01:00
Do not include dlfcn.h if external token support is disabled.
Fixes: #925
This commit is contained in:
@@ -7,11 +7,11 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
#include <dlfcn.h>
|
|
||||||
|
|
||||||
#include "luks2_internal.h"
|
#include "luks2_internal.h"
|
||||||
|
|
||||||
#if USE_EXTERNAL_TOKENS
|
#if USE_EXTERNAL_TOKENS
|
||||||
|
#include <dlfcn.h>
|
||||||
#define TOKENS_PATH_MAX PATH_MAX
|
#define TOKENS_PATH_MAX PATH_MAX
|
||||||
static bool external_tokens_enabled = true;
|
static bool external_tokens_enabled = true;
|
||||||
static char external_tokens_path[TOKENS_PATH_MAX] = EXTERNAL_LUKS2_TOKENS_PATH;
|
static char external_tokens_path[TOKENS_PATH_MAX] = EXTERNAL_LUKS2_TOKENS_PATH;
|
||||||
|
|||||||
Reference in New Issue
Block a user