mirror of https://github.com/adamdruppe/arsd.git
moar mac compatibility
This commit is contained in:
parent
566eea4fb2
commit
9ca8676882
7
http2.d
7
http2.d
|
@ -2089,7 +2089,12 @@ version(use_openssl) {
|
||||||
|
|
||||||
shared static this() {
|
shared static this() {
|
||||||
version(OSX) {
|
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)
|
if(ossllib_handle is null)
|
||||||
ossllib_handle = dlopen("/usr/local/opt/openssl/lib/libssl.1.0.0.dylib", RTLD_NOW);
|
ossllib_handle = dlopen("/usr/local/opt/openssl/lib/libssl.1.0.0.dylib", RTLD_NOW);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue