diff options
author | glewis <glewis@FreeBSD.org> | 2018-03-27 15:07:16 +0800 |
---|---|---|
committer | glewis <glewis@FreeBSD.org> | 2018-03-27 15:07:16 +0800 |
commit | 13523e5fa8be9444faf61eb541834e4889a0734a (patch) | |
tree | ea4e620f163a8908bb967eb1fc2dc56a30a07553 /archivers | |
parent | 1b85d61befc6a268e3b0d6976ffd3e8881b04518 (diff) | |
download | freebsd-ports-graphics-13523e5fa8be9444faf61eb541834e4889a0734a.tar.gz freebsd-ports-graphics-13523e5fa8be9444faf61eb541834e4889a0734a.tar.zst freebsd-ports-graphics-13523e5fa8be9444faf61eb541834e4889a0734a.zip |
. Fix the build with libressl-devel
PR: 226853
Submitted by: Piotr Kubaj <pkubaj@anongoth.pl>
Diffstat (limited to 'archivers')
-rw-r--r-- | archivers/libarchive/files/patch-libarchive-archive_openssl_evp_private.h | 9 | ||||
-rw-r--r-- | archivers/libarchive/files/patch-libarchive_openssl_hmac_private.h | 12 |
2 files changed, 17 insertions, 4 deletions
diff --git a/archivers/libarchive/files/patch-libarchive-archive_openssl_evp_private.h b/archivers/libarchive/files/patch-libarchive-archive_openssl_evp_private.h index d07b8a0f327..0b00e15fe55 100644 --- a/archivers/libarchive/files/patch-libarchive-archive_openssl_evp_private.h +++ b/archivers/libarchive/files/patch-libarchive-archive_openssl_evp_private.h @@ -1,11 +1,12 @@ ---- libarchive/archive_openssl_evp_private.h.orig Sun Jan 29 06:06:27 2017 -+++ libarchive/archive_openssl_evp_private.h Fri Mar 10 12:53:43 2017 -@@ -28,7 +28,7 @@ +--- libarchive/archive_openssl_evp_private.h.orig 2017-01-29 05:06:27 UTC ++++ libarchive/archive_openssl_evp_private.h +@@ -28,7 +28,8 @@ #include <openssl/evp.h> #include <openssl/opensslv.h> -#if OPENSSL_VERSION_NUMBER < 0x10100000L -+#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER) ++#if OPENSSL_VERSION_NUMBER < 0x10100000L || \ ++ (defined(LIBRESSL_VERSION_NUMBER) && LIBRESSL_VERSION_NUMBER < 0x2070000fL) #include <stdlib.h> /* malloc, free */ #include <string.h> /* memset */ static inline EVP_MD_CTX *EVP_MD_CTX_new(void) diff --git a/archivers/libarchive/files/patch-libarchive_openssl_hmac_private.h b/archivers/libarchive/files/patch-libarchive_openssl_hmac_private.h new file mode 100644 index 00000000000..fe138bb3aa4 --- /dev/null +++ b/archivers/libarchive/files/patch-libarchive_openssl_hmac_private.h @@ -0,0 +1,12 @@ +--- libarchive/archive_openssl_hmac_private.h.orig 2018-03-22 20:47:12 UTC ++++ libarchive/archive_openssl_hmac_private.h +@@ -28,7 +28,8 @@ + #include <openssl/hmac.h> + #include <openssl/opensslv.h> + +-#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER) ++#if OPENSSL_VERSION_NUMBER < 0x10100000L || \ ++ (defined(LIBRESSL_VERSION_NUMBER) && LIBRESSL_VERSION_NUMBER < 0x2070000fL) + #include <stdlib.h> /* malloc, free */ + #include <string.h> /* memset */ + static inline HMAC_CTX *HMAC_CTX_new(void) |