diff --git a/tls/dub.sdl b/tls/dub.sdl index 67e553ec1d..84e890d902 100644 --- a/tls/dub.sdl +++ b/tls/dub.sdl @@ -42,7 +42,7 @@ configuration "openssl" { auto output = dir.buildPath("openssl_version.d"); if (!output.exists || output.readText.strip != data.strip) data.toFile(output); - '` platform="posix" + ' || true` platform="posix" } configuration "openssl-1.1" { diff --git a/tls/vibe/stream/openssl.d b/tls/vibe/stream/openssl.d index 91c2234506..d0398b1b99 100644 --- a/tls/vibe/stream/openssl.d +++ b/tls/vibe/stream/openssl.d @@ -49,7 +49,7 @@ else { // Only use the openssl_version file if it has been generated static if (__traits(compiles, {import openssl_version; })) - mixin("import openssl_version;"); + mixin("public import openssl_version : OPENSSL_VERSION;"); else // try 1.1.0 as softfallback if old other means failed enum OPENSSL_VERSION = "1.1.0";