From: Niels Ole Salscheider Date: Fri, 19 Dec 2014 10:41:34 +0000 (+0100) Subject: Fix build with libressl X-Git-Tag: v4.1~569 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F568%2Fhead;p=thirdparty%2Ftvheadend.git Fix build with libressl --- diff --git a/src/main.c b/src/main.c index c718e39f2..ad066fabc 100644 --- a/src/main.c +++ b/src/main.c @@ -978,12 +978,14 @@ main(int argc, char **argv) CRYPTO_cleanup_all_ex_data(); EVP_cleanup(); CONF_modules_free(); +#ifndef OPENSSL_NO_COMP COMP_zlib_cleanup(); +#endif ERR_remove_state(0); ERR_free_strings(); - { - sk_SSL_COMP_free(SSL_COMP_get_compression_methods()); - } +#ifndef OPENSSL_NO_COMP + sk_SSL_COMP_free(SSL_COMP_get_compression_methods()); +#endif /* end of OpenSSL cleanup code */ #if ENABLE_DBUS_1