aboutsummaryrefslogtreecommitdiffstats
path: root/mail/postfix
diff options
context:
space:
mode:
authorohauer <ohauer@FreeBSD.org>2016-08-03 02:02:43 +0800
committerohauer <ohauer@FreeBSD.org>2016-08-03 02:02:43 +0800
commit161186a10e8b7b02e5ae37a9eb0a41a607bb39e6 (patch)
treefd944ad926f1c16edf0d7155cf709aae5d21195a /mail/postfix
parent945743432746a89bb4e0d6fe6b7d6b6d79e19a32 (diff)
downloadfreebsd-ports-gnome-161186a10e8b7b02e5ae37a9eb0a41a607bb39e6.tar.gz
freebsd-ports-gnome-161186a10e8b7b02e5ae37a9eb0a41a607bb39e6.tar.zst
freebsd-ports-gnome-161186a10e8b7b02e5ae37a9eb0a41a607bb39e6.zip
- fix build with libressl-devel
PR: 211502 Reported by: Helmut Ritter Obtained from: http://cvsweb.openbsd.org/cgi-bin/cvsweb/ports/mail/postfix/stable/patches/
Diffstat (limited to 'mail/postfix')
-rw-r--r--mail/postfix/files/patch-src_tls_tls.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/mail/postfix/files/patch-src_tls_tls.h b/mail/postfix/files/patch-src_tls_tls.h
new file mode 100644
index 000000000000..2bf7bdd5d082
--- /dev/null
+++ b/mail/postfix/files/patch-src_tls_tls.h
@@ -0,0 +1,14 @@
+# fix build against LibreSSL
+# Obtained from: http://cvsweb.openbsd.org/cgi-bin/cvsweb/ports/mail/postfix/stable/patches/
+#
+--- src/tls/tls.h.orig 2016-02-06 20:09:41 UTC
++++ src/tls/tls.h
+@@ -89,7 +89,7 @@ extern const char *str_tls_level(int);
+ #endif
+
+ /* Backwards compatibility with OpenSSL < 1.1.0 */
+-#if OPENSSL_VERSION_NUMBER < 0x10100000L
++#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER)
+ #define OpenSSL_version_num SSLeay
+ #define OpenSSL_version SSLeay_version
+ #define OPENSSL_VERSION SSLEAY_VERSION