summaryrefslogtreecommitdiffstats
path: root/java/sablepath/files/patch-af
blob: 8fa36f03d0a9497971a355f896da44cbe55ddce7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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
OpenPOWER on IntegriCloud