File ranch-1.7.1-deprecated.patch of Package ranch

diff -Ndurp ranch-1.7.1/src/ranch_ssl.erl ranch-1.7.1-deprecated/src/ranch_ssl.erl
--- ranch-1.7.1/src/ranch_ssl.erl	2018-11-28 12:35:20.000000000 +0200
+++ ranch-1.7.1-deprecated/src/ranch_ssl.erl	2023-08-20 14:34:12.154397637 +0300
@@ -16,8 +16,10 @@
 -behaviour(ranch_transport).
 
 -ifdef(OTP_RELEASE).
+-if(?OTP_RELEASE >= 21).
 -compile({nowarn_deprecated_function, [{ssl, ssl_accept, 3}]}).
 -endif.
+-endif.
 
 -export([name/0]).
 -export([secure/0]).
openSUSE Build Service is sponsored by