A gcj user reported that mprec wasn't building properly on cygwin.
The appended patch fixes the problem. I'm checking this in.
Tom
Index: ChangeLog
from Tom Tromey <[EMAIL PROTECTED]>
* native/fdlibm/mprec.c (mprec_calloc): Renamed.
(Balloc): Updated.
Index: native/fdlibm/mprec.c
===================================================================
RCS file: /cvsroot/classpath/classpath/native/fdlibm/mprec.c,v
retrieving revision 1.9
diff -u -r1.9 mprec.c
--- native/fdlibm/mprec.c 24 Sep 2006 15:17:45 -0000 1.9
+++ native/fdlibm/mprec.c 25 Sep 2006 18:25:20 -0000
@@ -101,7 +101,7 @@
typedef long __Long;
static void *
-_calloc_r (void *ignore, size_t x1, size_t x2)
+mprec_calloc (void *ignore, size_t x1, size_t x2)
{
char *result = (char *) malloc (x1 * x2);
memset (result, 0, x1 * x2);
@@ -119,7 +119,7 @@
if (_REENT_MP_FREELIST(ptr) == NULL)
{
/* Allocate a list of pointers to the mprec objects */
- _REENT_MP_FREELIST(ptr) = (struct _Bigint **) _calloc_r (ptr,
+ _REENT_MP_FREELIST(ptr) = (struct _Bigint **) mprec_calloc (ptr,
sizeof (struct _Bigint *),
new_k);
if (_REENT_MP_FREELIST(ptr) == NULL)
@@ -150,7 +150,7 @@
{
x = 1 << k;
/* Allocate an mprec Bigint and stick in in the freelist */
- rv = (_Bigint *) _calloc_r (ptr,
+ rv = (_Bigint *) mprec_calloc (ptr,
1,
sizeof (_Bigint) +
(x-1) * sizeof(rv->_x));