aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorehaupt <ehaupt@FreeBSD.org>2017-08-14 08:07:50 +0800
committerehaupt <ehaupt@FreeBSD.org>2017-08-14 08:07:50 +0800
commit21aa835a28a8328214a4d1ea4474af5ace2b571c (patch)
treeb3beea55d2421d193bed9d3a3366b1291f6090f7 /mail
parentbdec3e1a64e7be1dd5bdd114f517cbd65baa895d (diff)
downloadfreebsd-ports-gnome-21aa835a28a8328214a4d1ea4474af5ace2b571c.tar.gz
freebsd-ports-gnome-21aa835a28a8328214a4d1ea4474af5ace2b571c.tar.zst
freebsd-ports-gnome-21aa835a28a8328214a4d1ea4474af5ace2b571c.zip
Fix build with libressl
PR: 221498 Submitted by: pkubaj@anongoth.pl
Diffstat (limited to 'mail')
-rw-r--r--mail/isync/files/patch-src_socket.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/mail/isync/files/patch-src_socket.c b/mail/isync/files/patch-src_socket.c
new file mode 100644
index 000000000000..4dbed8220aa8
--- /dev/null
+++ b/mail/isync/files/patch-src_socket.c
@@ -0,0 +1,11 @@
+--- src/socket.c.orig 2017-08-13 23:04:40 UTC
++++ src/socket.c
+@@ -40,7 +40,7 @@
+ # include <openssl/ssl.h>
+ # include <openssl/err.h>
+ # include <openssl/x509v3.h>
+-# if OPENSSL_VERSION_NUMBER < 0x10100000L
++# if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER)
+ # define X509_OBJECT_get0_X509(o) ((o)->data.x509)
+ # define X509_STORE_get0_objects(o) ((o)->objs)
+ # endif