Do not include dlfcn.h if external token support is disabled.

Fixes: #925
This commit is contained in:
Milan Broz
2025-01-15 14:21:16 +01:00
parent 06c0f03c9f
commit a45fb0a90d

View File

@@ -7,11 +7,11 @@
*/
#include <ctype.h>
#include <dlfcn.h>
#include "luks2_internal.h"
#if USE_EXTERNAL_TOKENS
#include <dlfcn.h>
#define TOKENS_PATH_MAX PATH_MAX
static bool external_tokens_enabled = true;
static char external_tokens_path[TOKENS_PATH_MAX] = EXTERNAL_LUKS2_TOKENS_PATH;