ports/java/sablepath/files/patch-af
Archie Cobbs 016d0c777f 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/
2002-07-09 22:05:31 +00:00

24 lines
716 B
Text

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