From 9df573c1d54ff52f4448e1ed09f8b22d9208605e Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Fri, 8 Apr 2011 11:14:38 -0700 Subject: [PATCH] * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise. --- ChangeLog | 1 + lib/malloca.c | 4 +--- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index bf38cd7bd2..deb8c12932 100644 --- a/ChangeLog +++ b/ChangeLog @@ -5,6 +5,7 @@ if !_GL_USE_STDLIB_ALLOC. * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define. (malloc, realloc): Don't #undef; no longer needed. + * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise. careadlinkat: rename members to avoid problem * lib/allocator.h (struct allocator): Rename members from diff --git a/lib/malloca.c b/lib/malloca.c index be3783e9d3..45d3075b9a 100644 --- a/lib/malloca.c +++ b/lib/malloca.c @@ -16,6 +16,7 @@ along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ +#define _GL_USE_STDLIB_ALLOC 1 #include /* Specification. */ @@ -23,9 +24,6 @@ #include "verify.h" -/* Use the system functions, not the gnulib overrides in this file. */ -#undef malloc - /* The speed critical point in this file is freea() applied to an alloca() result: it must be fast, to match the speed of alloca(). The speed of mmalloca() and freea() in the other case are not critical, because they -- 2.30.2