110-libarchive-fix-libressl-compat.patch 459 B

1234567891011
  1. --- a/Utilities/cmlibarchive/libarchive/archive_openssl_evp_private.h
  2. +++ b/Utilities/cmlibarchive/libarchive/archive_openssl_evp_private.h
  3. @@ -28,7 +28,7 @@
  4. #include <openssl/evp.h>
  5. #include <openssl/opensslv.h>
  6. -#if OPENSSL_VERSION_NUMBER < 0x10100000L
  7. +#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER)
  8. #include <stdlib.h> /* malloc, free */
  9. #include <string.h> /* memset */
  10. static inline EVP_MD_CTX *EVP_MD_CTX_new(void)