Fresh pull from upstream (stable) package feed
[librecmc/package-feed.git] / lang / lua-openssl / patches / 0030-support-OPENSSL_NO_COMP.patch
1 --- lua-openssl-0.6.0.old/src/ssl.c     2016-09-19 08:30:43.735075695 +0200
2 +++ lua-openssl-0.6.0/src/ssl.c 2016-09-19 08:48:37.393737125 +0200
3 @@ -1245,7 +1250,7 @@
4    lua_pushinteger(L, st);
5    return 2;
6  }
7 -#ifndef LIBRESSL_VERSION_NUMBER
8 +#if !defined(OPENSSL_NO_COMP) && !defined(LIBRESSL_VERSION_NUMBER)
9  static int openssl_ssl_current_compression(lua_State *L)
10  {
11    SSL* s = CHECK_OBJECT(1, SSL, "openssl.ssl");
12 @@ -1803,7 +1808,7 @@
13    {"getfd",     openssl_ssl_getfd},
14
15    {"current_cipher",        openssl_ssl_current_cipher},
16 -#ifndef LIBRESSL_VERSION_NUMBER
17 +#if !defined(OPENSSL_NO_COMP) && !defined(LIBRESSL_VERSION_NUMBER)
18    {"current_compression",   openssl_ssl_current_compression},
19  #endif
20    {"getpeerverification",   openssl_ssl_getpeerverification},