summaryrefslogtreecommitdiff
path: root/java/sablepath/files/patch-af
diff options
context:
space:
mode:
authorArchie Cobbs <archie@FreeBSD.org>2002-07-09 22:05:31 +0000
committerArchie Cobbs <archie@FreeBSD.org>2002-07-09 22:05:31 +0000
commit016d0c777ff720ee3e527f8417c86550b27f8031 (patch)
treed9af526e6364b153f4349ec402bccfa5345a0d7f /java/sablepath/files/patch-af
parentImplement USE_GNOMENG. Users should not be able to start using Evolution (diff)
This port builds and installs a version of the GNU Classpath Java class
and native libraries package that has been customized to work with SableVM. WWW: http://www.sablevm.org/
Notes
Notes: svn path=/head/; revision=62725
Diffstat (limited to 'java/sablepath/files/patch-af')
-rw-r--r--java/sablepath/files/patch-af24
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