File chatterbox-0.8.0-ssl.patch of Package chatterbox

diff -Ndurp chatterbox-0.8.0/src/h2_connection.erl chatterbox-0.8.0-ssl/src/h2_connection.erl
--- chatterbox-0.8.0/src/h2_connection.erl	2018-08-27 22:43:12.000000000 +0300
+++ chatterbox-0.8.0-ssl/src/h2_connection.erl	2019-09-16 18:24:30.029707657 +0300
@@ -106,8 +106,11 @@
 -export_type([send_option/0, send_opts/0]).
 
 -ifdef(OTP_RELEASE).
+-if (?OTP_RELEASE >= 21).
 -define(ssl_accept(ClientSocket, SSLOptions), ssl:handshake(ClientSocket, SSLOptions)).
--else.
+-endif.
+-endif.
+-ifndef(ssl_accept).
 -define(ssl_accept(ClientSocket, SSLOptions), ssl:ssl_accept(ClientSocket, SSLOptions)).
 -endif.
 
openSUSE Build Service is sponsored by