changeset 34234:781fed91fb1d

* lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
author Paul Eggert <eggert@cs.ucla.edu>
date Fri, 08 Apr 2011 11:34:08 -0700
parents fb13b40161fc
children bec9436391d4
files ChangeLog lib/canonicalize-lgpl.c
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Fri Apr 08 11:31:54 2011 -0700
+++ b/ChangeLog	Fri Apr 08 11:34:08 2011 -0700
@@ -8,6 +8,7 @@
 	* lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
 	* lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
 	* lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
+	* lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
 
 	careadlinkat: rename members to avoid problem
 	* lib/allocator.h (struct allocator): Rename members from
--- a/lib/canonicalize-lgpl.c	Fri Apr 08 11:31:54 2011 -0700
+++ b/lib/canonicalize-lgpl.c	Fri Apr 08 11:34:08 2011 -0700
@@ -16,6 +16,7 @@
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
 #ifndef _LIBC
+# define _GL_USE_STDLIB_ALLOC 1
 # include <config.h>
 #endif
 
@@ -68,8 +69,6 @@
 # endif
 # define __readlink readlink
 # define __set_errno(e) errno = (e)
-/* Use the system functions, not the gnulib overrides in this file.  */
-# undef malloc
 # ifndef MAXSYMLINKS
 #  ifdef SYMLOOP_MAX
 #   define MAXSYMLINKS SYMLOOP_MAX