summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--crypto/engine/eng_all.c2
-rw-r--r--crypto/engine/engine.h1
2 files changed, 2 insertions, 1 deletions
diff --git a/crypto/engine/eng_all.c b/crypto/engine/eng_all.c
index 9b0e0bc92e..6bb7e93bb2 100644
--- a/crypto/engine/eng_all.c
+++ b/crypto/engine/eng_all.c
@@ -70,7 +70,7 @@ void ENGINE_load_builtin_engines(void)
ENGINE_load_openssl();
#endif
ENGINE_load_dynamic();
-#ifdef OPENSSL_NO_DYNAMIC_ENGINE
+#ifndef OPENSSL_NO_STATIC_ENGINE
#ifndef OPENSSL_NO_HW
#ifndef OPENSSL_NO_HW_CSWIFT
ENGINE_load_cswift();
diff --git a/crypto/engine/engine.h b/crypto/engine/engine.h
index 3b951eb3e2..8ed684c0ea 100644
--- a/crypto/engine/engine.h
+++ b/crypto/engine/engine.h
@@ -64,6 +64,7 @@
#ifndef HEADER_ENGINE_H
#define HEADER_ENGINE_H
+#include <openssl/opensslconf.h>
#include <openssl/ossl_typ.h>
#include <openssl/bn.h>
#ifndef OPENSSL_NO_RSA