Lucio Andrés Illanes Albornoz (arab, vxp) 4375f9
diff -ru cmake-3.7.2.orig/Utilities/cmlibarchive/libarchive/archive_openssl_hmac_private.h cmake-3.7.2/Utilities/cmlibarchive/libarchive/archive_openssl_hmac_private.h
Lucio Andrés Illanes Albornoz (arab, vxp) 4375f9
--- cmake-3.7.2.orig/Utilities/cmlibarchive/libarchive/archive_openssl_hmac_private.h	2017-01-13 15:05:42.000000000 +0100
Lucio Andrés Illanes Albornoz (arab, vxp) 4375f9
+++ cmake-3.7.2/Utilities/cmlibarchive/libarchive/archive_openssl_hmac_private.h	2018-05-08 22:39:23.249070904 +0200
Lucio Andrés Illanes Albornoz (arab, vxp) 4375f9
@@ -28,7 +28,8 @@
Lucio Andrés Illanes Albornoz (arab, vxp) 4375f9
 #include <openssl/hmac.h>
Lucio Andrés Illanes Albornoz (arab, vxp) 4375f9
 #include <openssl/opensslv.h>
Lucio Andrés Illanes Albornoz (arab, vxp) 4375f9
 
Lucio Andrés Illanes Albornoz (arab, vxp) 4375f9
-#if OPENSSL_VERSION_NUMBER < 0x10100000L
Lucio Andrés Illanes Albornoz (arab, vxp) 4375f9
+#if OPENSSL_VERSION_NUMBER < 0x10100000L || \
Lucio Andrés Illanes Albornoz (arab, vxp) 4375f9
+    (defined(LIBRESSL_VERSION_NUMBER) && LIBRESSL_VERSION_NUMBER < 0x2070000fL)
Lucio Andrés Illanes Albornoz (arab, vxp) 4375f9
 #include <stdlib.h> /* malloc, free */
Lucio Andrés Illanes Albornoz (arab, vxp) 4375f9
 #include <string.h> /* memset */
Lucio Andrés Illanes Albornoz (arab, vxp) 4375f9
 static inline HMAC_CTX *HMAC_CTX_new(void)