From 08db592f3d065482aadb30cc504df949485f7f0b Mon Sep 17 00:00:00 2001 From: Ground0 Date: Tue, 1 Dec 2020 08:42:49 +0100 Subject: [PATCH] Add 32bit library support for 32Bit OS --- ltls.pbi | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/ltls.pbi b/ltls.pbi index c4cfc80..dea7cf4 100644 --- a/ltls.pbi +++ b/ltls.pbi @@ -45,8 +45,13 @@ Module ltls #TLS_WANT_POLLIN = -2 #TLS_WANT_POLLOUT = -3 - - Define libressl_tls = OpenLibrary(#PB_Any, "/usr/lib64/libtls.so.20") + + CompilerIf #PB_Compiler_Processor = #PB_Processor_x64 + Define libressl_tls = OpenLibrary(#PB_Any, "/usr/lib64/libtls.so.20") + CompilerElse + Define libressl_tls = OpenLibrary(#PB_Any, "/usr/lib/libtls.so.20") + CompilerEndIf + If IsLibrary(libressl_tls) Define Call_tls_init = GetFunction(libressl_tls, "tls_init")