From 9ca86768825dbfe9dcc3f4d918c16d1e5caf1cb7 Mon Sep 17 00:00:00 2001 From: "Adam D. Ruppe" Date: Wed, 27 Jan 2021 22:28:18 -0500 Subject: [PATCH] moar mac compatibility --- http2.d | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/http2.d b/http2.d index b65acbd..3375d72 100644 --- a/http2.d +++ b/http2.d @@ -2089,7 +2089,12 @@ version(use_openssl) { shared static this() { version(OSX) { - ossllib_handle = dlopen("libssl.dylib", RTLD_NOW); + // newest box + ossllib_handle = dlopen("libssl.1.1.dylib", RTLD_NOW); + // other boxes + if(ossllib_handle is null) + ossllib_handle = dlopen("libssl.dylib", RTLD_NOW); + // old ones like my laptop test if(ossllib_handle is null) ossllib_handle = dlopen("/usr/local/opt/openssl/lib/libssl.1.0.0.dylib", RTLD_NOW);