aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoradamw <adamw@FreeBSD.org>2016-11-24 00:51:15 +0800
committeradamw <adamw@FreeBSD.org>2016-11-24 00:51:15 +0800
commitba68d47a304a4335f672b35c6ce4032c4405382d (patch)
tree955b79e5b707a45d146e941c2d07470e04650650
parentbf96f728582b68e96a684a156f5fbce8124c21a0 (diff)
downloadfreebsd-ports-gnome-ba68d47a304a4335f672b35c6ce4032c4405382d.tar.gz
freebsd-ports-gnome-ba68d47a304a4335f672b35c6ce4032c4405382d.tar.zst
freebsd-ports-gnome-ba68d47a304a4335f672b35c6ce4032c4405382d.zip
Fix build with LibreSSL.
Approved by: just-fix-it
-rw-r--r--www/lynx-current/files/patch-WWW_Library_Implementation_HTTP.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/www/lynx-current/files/patch-WWW_Library_Implementation_HTTP.c b/www/lynx-current/files/patch-WWW_Library_Implementation_HTTP.c
new file mode 100644
index 000000000000..20d2e29fcf9c
--- /dev/null
+++ b/www/lynx-current/files/patch-WWW_Library_Implementation_HTTP.c
@@ -0,0 +1,11 @@
+--- WWW/Library/Implementation/HTTP.c.orig 2016-11-23 16:45:25 UTC
++++ WWW/Library/Implementation/HTTP.c
+@@ -926,7 +926,7 @@ static int HTLoadHTTP(const char *arg,
+ #elif SSLEAY_VERSION_NUMBER >= 0x0900
+ #ifndef USE_NSS_COMPAT_INCL
+ if (!try_tls) {
+-#if OPENSSL_VERSION_NUMBER >= 0x10100000L
++#if OPENSSL_VERSION_NUMBER >= 0x10100000L && !defined(LIBRESSL_VERSION_NUMBER)
+ SSL_set_min_proto_version(handle, TLS1_1_VERSION);
+ #else
+ SSL_set_options(handle, SSL_OP_NO_TLSv1);