diff options
Diffstat (limited to 'java/sablepath/files/patch-af')
-rw-r--r-- | java/sablepath/files/patch-af | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/java/sablepath/files/patch-af b/java/sablepath/files/patch-af new file mode 100644 index 000000000000..8fa36f03d0a9 --- /dev/null +++ b/java/sablepath/files/patch-af @@ -0,0 +1,24 @@ +diff -ur sablepath-0.1.3.orig/native/java.math/BigInteger.c sablepath-0.1.3/native/java.math/BigInteger.c +--- sablepath-0.1.3.orig/native/java.math/BigInteger.c Tue Nov 21 14:07:56 2000 ++++ sablepath-0.1.3/native/java.math/BigInteger.c Tue Jul 9 12:44:12 2002 +@@ -28,12 +28,20 @@ + #include <stdlib.h> + #include <stdio.h> + #include <unistd.h> ++#ifdef HAVE_ENDIAN_H + #include <endian.h> ++#endif + #include <math.h> + #include "java_math_BigInteger.h" + #include "../nsa/native_state.h" + #include <gmp.h> + ++#ifdef HAVE_MACHINE_ENDIAN_H ++#include <machine/endian.h> ++#if BYTE_ORDER == BIG_ENDIAN ++#define WORDS_BIGENDIAN ++#endif ++#endif + + /* maximum value a jdouble can hold */ + #define JDBL_MAX 1.7976931348623157e+308 |