summaryrefslogtreecommitdiff
path: root/java/sablepath/files
diff options
context:
space:
mode:
Diffstat (limited to 'java/sablepath/files')
-rw-r--r--java/sablepath/files/patch-aa369
-rw-r--r--java/sablepath/files/patch-ab22
-rw-r--r--java/sablepath/files/patch-ac18
-rw-r--r--java/sablepath/files/patch-ad13
-rw-r--r--java/sablepath/files/patch-ae13
-rw-r--r--java/sablepath/files/patch-af24
-rw-r--r--java/sablepath/files/patch-ag13
-rw-r--r--java/sablepath/files/patch-ah13
8 files changed, 485 insertions, 0 deletions
diff --git a/java/sablepath/files/patch-aa b/java/sablepath/files/patch-aa
new file mode 100644
index 000000000000..d4d3a79b9b8b
--- /dev/null
+++ b/java/sablepath/files/patch-aa
@@ -0,0 +1,369 @@
+diff -ur sablepath-0.1.3.orig/configure sablepath-0.1.3/configure
+--- sablepath-0.1.3.orig/configure Fri Apr 27 22:12:47 2001
++++ sablepath-0.1.3/configure Tue Jul 9 13:28:23 2002
+@@ -1682,8 +1682,10 @@
+ exec 5>>./config.log
+
+
++CFLAGS="$CFLAGS -pthread -I/usr/local/include -L/usr/local/lib"
++
+ echo $ac_n "checking for __gmpz_init in -lgmp""... $ac_c" 1>&6
+-echo "configure:1687: checking for __gmpz_init in -lgmp" >&5
++echo "configure:1689: checking for __gmpz_init in -lgmp" >&5
+ ac_lib_var=`echo gmp'_'__gmpz_init | sed 'y%./+-%__p_%'`
+ if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+@@ -1691,7 +1693,7 @@
+ ac_save_LIBS="$LIBS"
+ LIBS="-lgmp $LIBS"
+ cat > conftest.$ac_ext <<EOF
+-#line 1695 "configure"
++#line 1697 "configure"
+ #include "confdefs.h"
+ /* Override any gcc2 internal prototype to avoid an error. */
+ /* We use char because int might match the return type of a gcc2
+@@ -1702,7 +1704,7 @@
+ __gmpz_init()
+ ; return 0; }
+ EOF
+-if { (eval echo configure:1706: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
++if { (eval echo configure:1708: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+ rm -rf conftest*
+ eval "ac_cv_lib_$ac_lib_var=yes"
+ else
+@@ -1729,12 +1731,12 @@
+ do
+ ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
+ echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
+-echo "configure:1733: checking for $ac_hdr that defines DIR" >&5
++echo "configure:1735: checking for $ac_hdr that defines DIR" >&5
+ if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+ else
+ cat > conftest.$ac_ext <<EOF
+-#line 1738 "configure"
++#line 1740 "configure"
+ #include "confdefs.h"
+ #include <sys/types.h>
+ #include <$ac_hdr>
+@@ -1742,7 +1744,7 @@
+ DIR *dirp = 0;
+ ; return 0; }
+ EOF
+-if { (eval echo configure:1746: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
++if { (eval echo configure:1748: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+ rm -rf conftest*
+ eval "ac_cv_header_dirent_$ac_safe=yes"
+ else
+@@ -1767,7 +1769,7 @@
+ # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
+ if test $ac_header_dirent = dirent.h; then
+ echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
+-echo "configure:1771: checking for opendir in -ldir" >&5
++echo "configure:1773: checking for opendir in -ldir" >&5
+ ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
+ if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+@@ -1775,7 +1777,7 @@
+ ac_save_LIBS="$LIBS"
+ LIBS="-ldir $LIBS"
+ cat > conftest.$ac_ext <<EOF
+-#line 1779 "configure"
++#line 1781 "configure"
+ #include "confdefs.h"
+ /* Override any gcc2 internal prototype to avoid an error. */
+ /* We use char because int might match the return type of a gcc2
+@@ -1786,7 +1788,7 @@
+ opendir()
+ ; return 0; }
+ EOF
+-if { (eval echo configure:1790: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
++if { (eval echo configure:1792: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+ rm -rf conftest*
+ eval "ac_cv_lib_$ac_lib_var=yes"
+ else
+@@ -1808,7 +1810,7 @@
+
+ else
+ echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
+-echo "configure:1812: checking for opendir in -lx" >&5
++echo "configure:1814: checking for opendir in -lx" >&5
+ ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
+ if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+@@ -1816,7 +1818,7 @@
+ ac_save_LIBS="$LIBS"
+ LIBS="-lx $LIBS"
+ cat > conftest.$ac_ext <<EOF
+-#line 1820 "configure"
++#line 1822 "configure"
+ #include "confdefs.h"
+ /* Override any gcc2 internal prototype to avoid an error. */
+ /* We use char because int might match the return type of a gcc2
+@@ -1827,7 +1829,7 @@
+ opendir()
+ ; return 0; }
+ EOF
+-if { (eval echo configure:1831: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
++if { (eval echo configure:1833: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+ rm -rf conftest*
+ eval "ac_cv_lib_$ac_lib_var=yes"
+ else
+@@ -1850,12 +1852,12 @@
+ fi
+
+ echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
+-echo "configure:1854: checking for ANSI C header files" >&5
++echo "configure:1856: checking for ANSI C header files" >&5
+ if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+ else
+ cat > conftest.$ac_ext <<EOF
+-#line 1859 "configure"
++#line 1861 "configure"
+ #include "confdefs.h"
+ #include <stdlib.h>
+ #include <stdarg.h>
+@@ -1863,7 +1865,7 @@
+ #include <float.h>
+ EOF
+ ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
+-{ (eval echo configure:1867: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
++{ (eval echo configure:1869: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
+ ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
+ if test -z "$ac_err"; then
+ rm -rf conftest*
+@@ -1880,7 +1882,7 @@
+ if test $ac_cv_header_stdc = yes; then
+ # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
+ cat > conftest.$ac_ext <<EOF
+-#line 1884 "configure"
++#line 1886 "configure"
+ #include "confdefs.h"
+ #include <string.h>
+ EOF
+@@ -1898,7 +1900,7 @@
+ if test $ac_cv_header_stdc = yes; then
+ # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
+ cat > conftest.$ac_ext <<EOF
+-#line 1902 "configure"
++#line 1904 "configure"
+ #include "confdefs.h"
+ #include <stdlib.h>
+ EOF
+@@ -1919,7 +1921,7 @@
+ :
+ else
+ cat > conftest.$ac_ext <<EOF
+-#line 1923 "configure"
++#line 1925 "configure"
+ #include "confdefs.h"
+ #include <ctype.h>
+ #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
+@@ -1930,7 +1932,7 @@
+ exit (0); }
+
+ EOF
+-if { (eval echo configure:1934: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
++if { (eval echo configure:1936: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
+ then
+ :
+ else
+@@ -1953,21 +1955,21 @@
+
+ fi
+
+-for ac_hdr in fcntl.h malloc.h sys/time.h unistd.h
++for ac_hdr in fcntl.h sys/time.h unistd.h
+ do
+ ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
+ echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
+-echo "configure:1961: checking for $ac_hdr" >&5
++echo "configure:1963: checking for $ac_hdr" >&5
+ if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+ else
+ cat > conftest.$ac_ext <<EOF
+-#line 1966 "configure"
++#line 1968 "configure"
+ #include "confdefs.h"
+ #include <$ac_hdr>
+ EOF
+ ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
+-{ (eval echo configure:1971: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
++{ (eval echo configure:1973: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
+ ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
+ if test -z "$ac_err"; then
+ rm -rf conftest*
+@@ -1994,14 +1996,55 @@
+ fi
+ done
+
++for ac_hdr in malloc.h endian.h machine/endian.h
++do
++ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
++echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
++echo "configure:2004: checking for $ac_hdr" >&5
++if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
++ echo $ac_n "(cached) $ac_c" 1>&6
++else
++ cat > conftest.$ac_ext <<EOF
++#line 2009 "configure"
++#include "confdefs.h"
++#include <$ac_hdr>
++EOF
++ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
++{ (eval echo configure:2014: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
++ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
++if test -z "$ac_err"; then
++ rm -rf conftest*
++ eval "ac_cv_header_$ac_safe=yes"
++else
++ echo "$ac_err" >&5
++ echo "configure: failed program was:" >&5
++ cat conftest.$ac_ext >&5
++ rm -rf conftest*
++ eval "ac_cv_header_$ac_safe=no"
++fi
++rm -f conftest*
++fi
++if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
++ echo "$ac_t""yes" 1>&6
++ ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
++ cat >> confdefs.h <<EOF
++#define $ac_tr_hdr 1
++EOF
++ echo -n
++else
++ echo "$ac_t""no" 1>&6
++echo -n
++fi
++done
++
+
+ echo $ac_n "checking for working const""... $ac_c" 1>&6
+-echo "configure:2000: checking for working const" >&5
++echo "configure:2043: checking for working const" >&5
+ if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+ else
+ cat > conftest.$ac_ext <<EOF
+-#line 2005 "configure"
++#line 2048 "configure"
+ #include "confdefs.h"
+
+ int main() {
+@@ -2050,7 +2093,7 @@
+
+ ; return 0; }
+ EOF
+-if { (eval echo configure:2054: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
++if { (eval echo configure:2097: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+ rm -rf conftest*
+ ac_cv_c_const=yes
+ else
+@@ -2071,12 +2114,12 @@
+ fi
+
+ echo $ac_n "checking for mode_t""... $ac_c" 1>&6
+-echo "configure:2075: checking for mode_t" >&5
++echo "configure:2118: checking for mode_t" >&5
+ if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+ else
+ cat > conftest.$ac_ext <<EOF
+-#line 2080 "configure"
++#line 2123 "configure"
+ #include "confdefs.h"
+ #include <sys/types.h>
+ #if STDC_HEADERS
+@@ -2104,12 +2147,12 @@
+ fi
+
+ echo $ac_n "checking for size_t""... $ac_c" 1>&6
+-echo "configure:2108: checking for size_t" >&5
++echo "configure:2151: checking for size_t" >&5
+ if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+ else
+ cat > conftest.$ac_ext <<EOF
+-#line 2113 "configure"
++#line 2156 "configure"
+ #include "confdefs.h"
+ #include <sys/types.h>
+ #if STDC_HEADERS
+@@ -2137,12 +2180,12 @@
+ fi
+
+ echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
+-echo "configure:2141: checking whether time.h and sys/time.h may both be included" >&5
++echo "configure:2184: checking whether time.h and sys/time.h may both be included" >&5
+ if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+ else
+ cat > conftest.$ac_ext <<EOF
+-#line 2146 "configure"
++#line 2189 "configure"
+ #include "confdefs.h"
+ #include <sys/types.h>
+ #include <sys/time.h>
+@@ -2151,7 +2194,7 @@
+ struct tm *tp;
+ ; return 0; }
+ EOF
+-if { (eval echo configure:2155: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
++if { (eval echo configure:2198: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+ rm -rf conftest*
+ ac_cv_header_time=yes
+ else
+@@ -2173,7 +2216,7 @@
+
+
+ echo $ac_n "checking whether utime accepts a null argument""... $ac_c" 1>&6
+-echo "configure:2177: checking whether utime accepts a null argument" >&5
++echo "configure:2220: checking whether utime accepts a null argument" >&5
+ if eval "test \"`echo '$''{'ac_cv_func_utime_null'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+ else
+@@ -2183,7 +2226,7 @@
+ ac_cv_func_utime_null=no
+ else
+ cat > conftest.$ac_ext <<EOF
+-#line 2187 "configure"
++#line 2230 "configure"
+ #include "confdefs.h"
+ #include <sys/types.h>
+ #include <sys/stat.h>
+@@ -2194,7 +2237,7 @@
+ && t.st_mtime - s.st_mtime < 120));
+ }
+ EOF
+-if { (eval echo configure:2198: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
++if { (eval echo configure:2241: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
+ then
+ ac_cv_func_utime_null=yes
+ else
+@@ -2220,12 +2263,12 @@
+ for ac_func in gethostname gettimeofday mkdir mktime rmdir socket strdup strerror strtod
+ do
+ echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
+-echo "configure:2224: checking for $ac_func" >&5
++echo "configure:2267: checking for $ac_func" >&5
+ if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+ else
+ cat > conftest.$ac_ext <<EOF
+-#line 2229 "configure"
++#line 2272 "configure"
+ #include "confdefs.h"
+ /* System header to define __stub macros and hopefully few prototypes,
+ which can conflict with char $ac_func(); below. */
+@@ -2248,7 +2291,7 @@
+
+ ; return 0; }
+ EOF
+-if { (eval echo configure:2252: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
++if { (eval echo configure:2295: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+ rm -rf conftest*
+ eval "ac_cv_func_$ac_func=yes"
+ else
diff --git a/java/sablepath/files/patch-ab b/java/sablepath/files/patch-ab
new file mode 100644
index 000000000000..7da7e44f1712
--- /dev/null
+++ b/java/sablepath/files/patch-ab
@@ -0,0 +1,22 @@
+diff -ur sablepath-0.1.3.orig/configure.in sablepath-0.1.3/configure.in
+--- sablepath-0.1.3.orig/configure.in Fri Apr 27 21:19:37 2001
++++ sablepath-0.1.3/configure.in Tue Jul 9 12:44:11 2002
+@@ -26,13 +26,17 @@
+ AC_LIBTOOL_DLOPEN
+ AM_PROG_LIBTOOL
+
++dnl Required FreeBSD compile flags
++CFLAGS="$CFLAGS -pthread -I/usr/local/include -L/usr/local/lib"
++
+ dnl Checks for libraries.
+ AC_CHECK_LIB(gmp, __gmpz_init, echo -n, echo ***ERROR: libgmp is missing; exit 1)
+
+ dnl Checks for header files.
+ AC_HEADER_DIRENT
+ AC_HEADER_STDC
+-AC_CHECK_HEADERS(fcntl.h malloc.h sys/time.h unistd.h, echo -n, echo ***ERROR: missing standard header file; exit 1)
++AC_CHECK_HEADERS(fcntl.h sys/time.h unistd.h, echo -n, echo ***ERROR: missing standard header file; exit 1)
++AC_CHECK_HEADERS(malloc.h endian.h machine/endian.h,echo -n,echo -n)
+
+ dnl Checks for typedefs, structures, and compiler characteristics.
+ AC_C_CONST
diff --git a/java/sablepath/files/patch-ac b/java/sablepath/files/patch-ac
new file mode 100644
index 000000000000..3513edb55e4b
--- /dev/null
+++ b/java/sablepath/files/patch-ac
@@ -0,0 +1,18 @@
+diff -ur sablepath-0.1.3.orig/include/config.h.in sablepath-0.1.3/include/config.h.in
+--- sablepath-0.1.3.orig/include/config.h.in Tue Aug 1 19:14:17 2000
++++ sablepath-0.1.3/include/config.h.in Tue Jul 9 12:50:16 2002
+@@ -48,8 +48,14 @@
+ /* Define if you have the <dirent.h> header file. */
+ #undef HAVE_DIRENT_H
+
++/* Define if you have the <endian.h> header file. */
++#undef HAVE_ENDIAN_H
++
+ /* Define if you have the <fcntl.h> header file. */
+ #undef HAVE_FCNTL_H
++
++/* Define if you have the <machine/endian.h> header file. */
++#undef HAVE_MACHINE_ENDIAN_H
+
+ /* Define if you have the <malloc.h> header file. */
+ #undef HAVE_MALLOC_H
diff --git a/java/sablepath/files/patch-ad b/java/sablepath/files/patch-ad
new file mode 100644
index 000000000000..afc6cfac2e64
--- /dev/null
+++ b/java/sablepath/files/patch-ad
@@ -0,0 +1,13 @@
+diff -ur sablepath-0.1.3.orig/native/java.io/javaio.c sablepath-0.1.3/native/java.io/javaio.c
+--- sablepath-0.1.3.orig/native/java.io/javaio.c Thu Jun 15 14:54:13 2000
++++ sablepath-0.1.3/native/java.io/javaio.c Tue Jul 9 12:44:11 2002
+@@ -37,7 +37,9 @@
+
+ #include "javaio.h"
+
++#ifdef HAVE_MALLOC_H
+ #include <malloc.h>
++#endif
+
+ static char errstr[4098]; // this way the memory is pre-allocated, so that we do not have to worry if we are out of memory.
+
diff --git a/java/sablepath/files/patch-ae b/java/sablepath/files/patch-ae
new file mode 100644
index 000000000000..10e402213dcf
--- /dev/null
+++ b/java/sablepath/files/patch-ae
@@ -0,0 +1,13 @@
+diff -ur sablepath-0.1.3.orig/native/java.lang/javalang.c sablepath-0.1.3/native/java.lang/javalang.c
+--- sablepath-0.1.3.orig/native/java.lang/javalang.c Tue Jun 13 23:45:09 2000
++++ sablepath-0.1.3/native/java.lang/javalang.c Tue Jul 9 12:44:12 2002
+@@ -35,7 +35,9 @@
+
+ #include "javalang.h"
+
++#ifdef HAVE_MALLOC_H
+ #include <malloc.h>
++#endif
+
+ static char errstr[4098]; // this way the memory is pre-allocated, so that we do not have to worry if we are out of memory.
+
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
diff --git a/java/sablepath/files/patch-ag b/java/sablepath/files/patch-ag
new file mode 100644
index 000000000000..0b990bc2d938
--- /dev/null
+++ b/java/sablepath/files/patch-ag
@@ -0,0 +1,13 @@
+diff -ur sablepath-0.1.3.orig/native/lib/jcl.c sablepath-0.1.3/native/lib/jcl.c
+--- sablepath-0.1.3.orig/native/lib/jcl.c Thu Jun 15 18:32:49 2000
++++ sablepath-0.1.3/native/lib/jcl.c Tue Jul 9 12:44:12 2002
+@@ -26,7 +26,9 @@
+
+ #include <stdio.h>
+ #include <jcl.h>
++#ifdef HAVE_MALLOC_H
+ #include <malloc.h>
++#endif
+
+ static char errstr[4098]; // this way the memory is pre-allocated, so that we do not have to worry if we are out of memory.
+
diff --git a/java/sablepath/files/patch-ah b/java/sablepath/files/patch-ah
new file mode 100644
index 000000000000..c9b0f9ea60b1
--- /dev/null
+++ b/java/sablepath/files/patch-ah
@@ -0,0 +1,13 @@
+diff -ur sablepath-0.1.3.orig/native/lib/jnilink.c sablepath-0.1.3/native/lib/jnilink.c
+--- sablepath-0.1.3.orig/native/lib/jnilink.c Tue Jun 13 23:45:18 2000
++++ sablepath-0.1.3/native/lib/jnilink.c Tue Jul 9 12:44:12 2002
+@@ -29,7 +29,9 @@
+ #include <string.h>
+ #include <jcl.h>
+
++#ifdef HAVE_MALLOC_H
+ #include <malloc.h>
++#endif
+
+ #define GETCLASS(c) *(jclass*)(c)
+