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/e763089f6c23
branches:  trunk
changeset: 313479:e763089f6c23
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 42c0d82cdc07 -r e763089f6c23 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