* lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
authorPaul Eggert <eggert@cs.ucla.edu>
Fri, 8 Apr 2011 18:38:38 +0000 (11:38 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Fri, 8 Apr 2011 20:31:44 +0000 (13:31 -0700)
ChangeLog
lib/malloc.c

index 3f31057..a14bb32 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -11,6 +11,7 @@
        * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
        * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
        * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
+       * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
 
        careadlinkat: rename members to avoid problem
        * lib/allocator.h (struct allocator): Rename members from
index 73c503f..ef07f6c 100644 (file)
@@ -18,6 +18,7 @@
 
 /* written by Jim Meyering and Bruno Haible */
 
+#define _GL_USE_STDLIB_ALLOC 1
 #include <config.h>
 /* Only the AC_FUNC_MALLOC macro defines 'malloc' already in config.h.  */
 #ifdef malloc
 # define NEED_MALLOC_GNU 1
 #endif
 
-/* Specification.  */
 #include <stdlib.h>
 
 #include <errno.h>
 
-/* Call the system's malloc below.  */
-#undef malloc
-
 /* Allocate an N-byte block of memory from the heap.
    If N is zero, allocate a 1-byte block.  */