$OpenBSD: patch-src_tls_tls_client_c,v 1.3 2018/02/14 15:43:30 jsing Exp $
--- src/tls/tls_client.c.orig	Sun Jan  1 17:22:13 2017
+++ src/tls/tls_client.c	Mon Feb 20 12:42:58 2017
@@ -299,7 +299,7 @@ TLS_APPL_STATE *tls_client_init(const TLS_CLIENT_INIT_
      */
     tls_check_version();
 
-#if OPENSSL_VERSION_NUMBER < 0x10100000L
+#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER)
 
     /*
      * Initialize the OpenSSL library by the book! To start with, we must
