From 2cb88646ca0e226f68b67339d178d81e6cd946f5 Mon Sep 17 00:00:00 2001
From: Michael Ortmann <41313082+michaelortmann@users.noreply.github.com>
Date: Mon, 8 Jul 2024 00:04:02 +0200
Subject: [PATCH] Fix --disable-tls breakage from pbkdf2 tcl

---
 src/mod/pbkdf2.mod/Makefile | 3 ++-
 src/mod/pbkdf2.mod/pbkdf2.c | 3 ++-
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/mod/pbkdf2.mod/Makefile b/src/mod/pbkdf2.mod/Makefile
index 6cf40c584..38e70d0fe 100644
--- a/src/mod/pbkdf2.mod/Makefile
+++ b/src/mod/pbkdf2.mod/Makefile
@@ -36,4 +36,5 @@ distclean: clean
  ../../../src/compat/compat.h ../../../src/compat/base64.h \
  ../../../src/compat/inet_aton.h ../../../src/compat/snprintf.h \
  ../../../src/compat/explicit_bzero.h ../../../src/compat/strlcpy.h \
- ../../../src/mod/modvals.h ../../../src/tandem.h
+ ../../../src/mod/modvals.h ../../../src/tandem.h \
+ .././pbkdf2.mod/tclpbkdf2.c
diff --git a/src/mod/pbkdf2.mod/pbkdf2.c b/src/mod/pbkdf2.mod/pbkdf2.c
index 2eda85038..faf7313d2 100644
--- a/src/mod/pbkdf2.mod/pbkdf2.c
+++ b/src/mod/pbkdf2.mod/pbkdf2.c
@@ -8,9 +8,10 @@
  */
 
 #include "src/mod/module.h"
-#include "src/mod/pbkdf2.mod/tclpbkdf2.c"
 
 #if OPENSSL_VERSION_NUMBER >= 0x1000000fL /* 1.0.0 */
+#include "tclpbkdf2.c"
+
 #define MODULE_NAME "encryption2"
 
 #include <resolv.h> /* base64 encode b64_ntop() and base64 decode b64_pton() */