app-emulation/spice: fix build for libressl 2.7+
authorVirgil Dupras <vdupras@gentoo.org>
Mon, 6 Aug 2018 13:27:27 +0000 (09:27 -0400)
committerVirgil Dupras <vdupras@gentoo.org>
Mon, 6 Aug 2018 13:27:27 +0000 (09:27 -0400)
Closes: https://bugs.gentoo.org/655356
Package-Manager: Portage-2.3.44, Repoman-2.3.10

app-emulation/spice/files/spice-0.14.0-libressl_fix.patch

index 2f77fa5a000679bd65bb88cbeab1de35cb9d89e0..1dfce9480e9c31b96f2dbe8f54bc1f267843fbe8 100644 (file)
@@ -7,7 +7,7 @@ index a9ed650..27aa5d3 100644
  #include <gio/gio.h>
  
 -#if OPENSSL_VERSION_NUMBER < 0x10100000
-+#if OPENSSL_VERSION_NUMBER < 0x10100000 || defined (LIBRESSL_VERSION_NUMBER)
++#if OPENSSL_VERSION_NUMBER < 0x10100000 || (defined(LIBRESSL_VERSION_NUMBER) && LIBRESSL_VERSION_NUMBER < 0x20700000L)
  static const unsigned char *ASN1_STRING_get0_data(const ASN1_STRING *asn1)
  {
      return M_ASN1_STRING_data(asn1);