LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File otp_src_20.3.8.20-lib-erl_interface-gmp.patch of Package erlang (Project home:Ledest:erlang:20)

diff -Ndurp otp_src_20.3.8.20/lib/erl_interface/include/ei.h otp_src_20.3.8.20-lib-erl_interface-gmp/lib/erl_interface/include/ei.h
--- otp_src_20.3.8.20/lib/erl_interface/include/ei.h	2019-02-15 16:14:58.000000000 +0200
+++ otp_src_20.3.8.20-lib-erl_interface-gmp/lib/erl_interface/include/ei.h	2019-02-24 02:27:27.787613422 +0200
@@ -731,8 +731,7 @@ int ei_reg_purge(ei_reg *reg);
 
 /* If the user included <gmp.h> we supply some more functions */
 
-#if defined(__GNU_MP_VERSION) \
-	&& __GNU_MP_VERSION == 4 && __GNU_MP_VERSION_MINOR >= 1 
+#if defined(__GNU_MP_VERSION) && (__GNU_MP_VERSION >= 5 || __GNU_MP_VERSION == 4 && __GNU_MP_VERSION_MINOR >= 1)
 
 int ei_decode_bignum(const char *buf, int *index, mpz_t obj);
 int ei_encode_bignum(char *buf, int *index, mpz_t obj);
diff -Ndurp otp_src_20.3.8.20/lib/erl_interface/src/decode/decode_bignum.c otp_src_20.3.8.20-lib-erl_interface-gmp/lib/erl_interface/src/decode/decode_bignum.c
--- otp_src_20.3.8.20/lib/erl_interface/src/decode/decode_bignum.c	2019-02-15 16:14:58.000000000 +0200
+++ otp_src_20.3.8.20-lib-erl_interface-gmp/lib/erl_interface/src/decode/decode_bignum.c	2019-02-24 02:20:53.060665526 +0200
@@ -18,7 +18,7 @@
  * %CopyrightEnd%
  */
 
-#include "eidef.h"
+#include "config.h"
 
 #if defined(HAVE_GMP_H) && defined(HAVE_LIBGMP)
 
diff -Ndurp otp_src_20.3.8.20/lib/erl_interface/src/encode/encode_bignum.c otp_src_20.3.8.20-lib-erl_interface-gmp/lib/erl_interface/src/encode/encode_bignum.c
--- otp_src_20.3.8.20/lib/erl_interface/src/encode/encode_bignum.c	2019-02-15 16:14:58.000000000 +0200
+++ otp_src_20.3.8.20-lib-erl_interface-gmp/lib/erl_interface/src/encode/encode_bignum.c	2019-02-24 02:27:04.748141775 +0200
@@ -18,7 +18,7 @@
  * %CopyrightEnd%
  */
 
-#include "eidef.h"
+#include "config.h"
 
 #if defined(HAVE_GMP_H) && defined(HAVE_LIBGMP)