diff options
author | Sergei Golubchik <serg@mariadb.org> | 2015-12-21 10:19:02 +0100 |
---|---|---|
committer | Sergei Golubchik <serg@mariadb.org> | 2015-12-21 12:17:31 +0100 |
commit | e126baafbc78f15c794082f0a93740d81041d038 (patch) | |
tree | 5b9aeec751ef5d261fc3a2355a933408a934b4b7 /include/violite.h | |
parent | 591e74c7e8f682f2eada7496f50aa73f38bd168d (diff) | |
download | mariadb-git-e126baafbc78f15c794082f0a93740d81041d038.tar.gz |
MDEV-9249 MariaDB un-buildable on linux64: fails @ "error: ‘ERR_remove_state’ was not declared in this scope" when linking against OpenSSL 1.0.2e
ERR_remove_state is deprecated, use ERR_remove_thread_state
if possible
Diffstat (limited to 'include/violite.h')
-rw-r--r-- | include/violite.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/violite.h b/include/violite.h index 14c99e8d8fe..ea7e3d7897c 100644 --- a/include/violite.h +++ b/include/violite.h @@ -123,6 +123,10 @@ typedef my_socket YASSL_SOCKET_T; #include <openssl/ssl.h> #include <openssl/err.h> +#ifdef HAVE_ERR_remove_thread_state +#define ERR_remove_state(X) ERR_remove_thread_state(NULL) +#endif + enum enum_ssl_init_error { SSL_INITERR_NOERROR= 0, SSL_INITERR_CERT, SSL_INITERR_KEY, |