]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
fix replacement malloc
authorWouter Wijngaards <wouter@nlnetlabs.nl>
Thu, 16 Jul 2009 10:17:52 +0000 (10:17 +0000)
committerWouter Wijngaards <wouter@nlnetlabs.nl>
Thu, 16 Jul 2009 10:17:52 +0000 (10:17 +0000)
git-svn-id: file:///svn/unbound/trunk@1728 be551aaa-1e26-0410-a405-d3ace91eadb9

compat/malloc.c
doc/Changelog

index e13ac2b6414f6059e2710939a044b69777e8184f..559aa100dd2b058bef545f756d8c224d5f4d7668 100644 (file)
@@ -2,6 +2,7 @@
    GNU-compliant. See autoconf documentation. */
 
 #include "config.h"
+#undef malloc
 #include <sys/types.h>
 
 void *malloc ();
@@ -10,7 +11,7 @@ void *malloc ();
    If N is zero, allocate a 1-byte block.  */
 
 void *
-malloc (size_t n)
+rpl_malloc_unbound (size_t n)
 {
   if (n == 0)
     n = 1;
index ffe305b36cb3caa1af4e1254b7a6267e6dc01d7f..ae429daa886f9e937323f5d06490ca3ada07e8aa 100644 (file)
@@ -1,3 +1,6 @@
+16 July 2009: Wouter
+       - fix replacement malloc code.  Used in crosscompile.
+
 15 July 2009: Wouter
        - dependencies for compat items, for crosscompile.
        - mingw32 crosscompile changes, dependencies and zipfile creation.