pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/archivers/libarchive/files/libarchive Fix build with L...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/fca4387f8a3a
branches:  trunk
changeset: 385854:fca4387f8a3a
user:      sevan <sevan%pkgsrc.org@localhost>
date:      Mon Oct 01 00:37:51 2018 +0000

description:
Fix build with LibreSSL 2.7
https://github.com/libarchive/libarchive/commit/5da00ad75b09e262774ec3675bbe4d5a4502a852

diffstat:

 archivers/libarchive/files/libarchive/archive_openssl_hmac_private.h |  3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diffs (13 lines):

diff -r fc1e3e369081 -r fca4387f8a3a archivers/libarchive/files/libarchive/archive_openssl_hmac_private.h
--- a/archivers/libarchive/files/libarchive/archive_openssl_hmac_private.h      Mon Oct 01 00:11:29 2018 +0000
+++ b/archivers/libarchive/files/libarchive/archive_openssl_hmac_private.h      Mon Oct 01 00:37:51 2018 +0000
@@ -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 < 0x20700000L)
 #include <stdlib.h> /* malloc, free */
 #include <string.h> /* memset */
 static inline HMAC_CTX *HMAC_CTX_new(void)



Home | Main Index | Thread Index | Old Index