logo

overlay

My (experimental) gentoo overlay

libarchive-3.3.3-libressl.patch (458B)


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