From: Paul Eggert Date: Fri, 8 Apr 2011 18:14:38 +0000 (-0700) Subject: * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9df573c1d54ff52f4448e1ed09f8b22d9208605e;p=pspp * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise. --- 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