diff --git a/src/common/common.h b/src/common/common.h index 813e0a13a..65d24e8b5 100644 --- a/src/common/common.h +++ b/src/common/common.h @@ -27,7 +27,7 @@ extern "C" { * using OpenSSL functions when OQS_USE_OPENSSL is defined, and * standard C library functions otherwise. */ -#if defined(OQS_USE_OPENSSL) && defined(OPENSSL_VERSION_NUMBER) +#if (defined(OQS_USE_OPENSSL) || defined(OQS_DLOPEN_OPENSSL)) && defined(OPENSSL_VERSION_NUMBER) #include /**