1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-24 04:33:24 +00:00
freebsd-ports/net-im/ricochet/files/patch-src_main.cpp
Bernard Spil 1cdca8b5d9 net-im/ricochet: Fix build with LibreSSL
- Remove IGNORE for LibreSSL
 - Add checks for LIBRESSL_VERSION_NUMBER

PR:		217350
Approved by:	Yuri Victorovich <yuri@rawbw.com> (maintainer)
Obtained from:	https://github.com/ricochet-im/ricochet/pull/529
2017-03-26 10:37:25 +00:00

12 lines
364 B
C++

--- src/main.cpp.orig 2016-11-04 22:05:33 UTC
+++ src/main.cpp
@@ -86,7 +86,7 @@ int main(int argc, char *argv[])
initTranslation();
/* Initialize OpenSSL's allocator */
-#if OPENSSL_VERSION_NUMBER < 0x10100000L
+#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER)
CRYPTO_malloc_init();
#else
OPENSSL_malloc_init();