diff options
Diffstat (limited to 'devel/cocktail/files/patch-reuse-m2c-rMemory.c')
-rw-r--r-- | devel/cocktail/files/patch-reuse-m2c-rMemory.c | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/devel/cocktail/files/patch-reuse-m2c-rMemory.c b/devel/cocktail/files/patch-reuse-m2c-rMemory.c new file mode 100644 index 000000000000..210a288e05bc --- /dev/null +++ b/devel/cocktail/files/patch-reuse-m2c-rMemory.c @@ -0,0 +1,39 @@ +--- ../../work/cocktail-9309//./reuse/m2c/rMemory.c Tue Feb 15 14:26:55 1994 ++++ ./reuse/m2c/rMemory.c Wed Mar 31 22:35:06 2004 +@@ -49,6 +49,10 @@ + LONGINT ByteCount; + # endif + { ++# ifdef __FreeBSD__ ++ /* FreeBSD is suppossed to have its own proper memory manager */ ++ return (ADDRESS)calloc(1,ByteCount); ++# else + tBlockPtr BlockPtr, CurrentBlock, PreviousBlock, BestBlock, PredecessorBlock; + CARDINAL ChainNumber; + LONGINT CurrentBlockSize, BestBlockSize; +@@ -129,6 +133,7 @@ + return (ADDRESS)BlockPtr; + } + } ++#endif + } + + void rMemory_Free +@@ -140,6 +145,9 @@ + ADDRESS a; + # endif + { ++#ifdef __FREEBSD__ ++ free(a); ++#else + tBlockPtr BlockPtr; + tLargeBlockRange ChainNumber; + +@@ -157,6 +165,7 @@ + BlockPtr->Size = ByteCount; + LargeChain.A[ChainNumber - 6] = (ADDRESS)BlockPtr; + } ++#endif + } + + void BEGIN_rMemory() |