diff --git a/ChangeLog b/ChangeLog index 9f912524c..b5721e968 100644 --- a/ChangeLog +++ b/ChangeLog @@ -21,6 +21,8 @@ Changes in version 0.2.0.22-rc - 2008-03-?? (sometimes) to buffer data for the network. Looking at different BIOs could result in write counts on the order of ULONG_MAX. Fix for bug 614. Bugfix on 0.1.2.x. + - Make --enable-openbsd-malloc work correctly on Linux with alpha CPUs. + Fixes bug 625. Bugfix on 0.2.0.x. Changes in version 0.2.0.21-rc - 2008-03-02 diff --git a/src/common/OpenBSD_malloc_Linux.c b/src/common/OpenBSD_malloc_Linux.c index b04323173..802517654 100644 --- a/src/common/OpenBSD_malloc_Linux.c +++ b/src/common/OpenBSD_malloc_Linux.c @@ -54,6 +54,7 @@ #include #include #include +#include "torint.h" //#include "thread_private.h" @@ -1926,11 +1927,14 @@ realloc(void *ptr, size_t size) return (r); } -#if defined(__i386__)||defined(__arm__)||defined(__powerpc__) -#define SIZE_MAX 0xffffffff -#endif -#if defined(__x86_64__) -#define SIZE_MAX 0xffffffffffffffff +#ifndef SIZE_MAX +//#if defined(__i386__)||defined(__arm__)||defined(__powerpc__) +//#define SIZE_MAX 0xffffffff +//#endif +//#if defined(__x86_64__) +//#define SIZE_MAX 0xffffffffffffffff +//#endif +#define SIZE_MAX SIZE_T_MAX #endif void *