File otp_src_22.0-rc1-lib-crypto.patch of Package erlang

diff -Ndurp otp_src_22.0-rc1/lib/crypto/configure.in otp_src_22.0-rc1-lib-crypto/lib/crypto/configure.in
--- otp_src_22.0-rc1/lib/crypto/configure.in	2019-02-27 14:18:57.000000000 +0200
+++ otp_src_22.0-rc1-lib-crypto/lib/crypto/configure.in	2019-02-27 15:53:10.886717588 +0200
@@ -602,6 +602,7 @@ yes
 		"$erl_xcomp_isysroot/cygdrive/c/kerberos/include" \
 		"$erl_xcomp_isysroot/usr/local/kerberos/include" \
 		"$erl_xcomp_isysroot/usr/kerberos/include" \
+		"$erl_xcomp_isysroot/usr/include/krb5" \
 		"$erl_xcomp_isysroot/usr/include"
 	do
             if test -f "$dir/krb5.h" ; then
@@ -635,7 +636,7 @@ case "$with_ssl_rpath" in
 
 yes)   # Use standard lib locations for ssl runtime library path
 
-  if test "$SSL_APP" != "" && test "$SSL_DYNAMIC_ONLY" = "yes" && test "$ded_ld_rflg" != ""; then
+  if test "$SSL_APP" != "" && test "$SSL_DYNAMIC_ONLY" = "yes" && test "$OPSYS" != "linux" && test "$ded_ld_rflg" != ""; then
 
     AC_MSG_CHECKING(for ssl runtime library path to use)
 
diff -Ndurp otp_src_22.0-rc1/lib/crypto/c_src/crypto.c otp_src_22.0-rc1-lib-crypto/lib/crypto/c_src/crypto.c
--- otp_src_22.0-rc1/lib/crypto/c_src/crypto.c	2019-02-27 14:18:57.000000000 +0200
+++ otp_src_22.0-rc1-lib-crypto/lib/crypto/c_src/crypto.c	2019-02-27 15:52:42.438955560 +0200
@@ -168,8 +168,8 @@ static int initialize(ErlNifEnv* env, ER
     const ERL_NIF_TERM* tpl_array;
     int vernum;
     ErlNifBinary lib_bin;
-    char lib_buf[1000];
 #ifdef HAVE_DYNAMIC_CRYPTO_LIB
+    char lib_buf[1000];
     void *handle;
 #endif
 
openSUSE Build Service is sponsored by