From c3fa6e3dc7db4a926f65be9855a077da9babd5b6 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Thu, 26 Apr 2001 00:07:06 +0000 Subject: Update. 2001-04-25 Ulrich Drepper * malloc/malloc.c: Allow MALLOC_ALIGNMENT to be defined on the compiler command line. * sysdeps/hppa/Makefile: Add -DMALLOC_ALIGNMENT=16 to compiler command line for malloc.c. --- malloc/malloc.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'malloc') diff --git a/malloc/malloc.c b/malloc/malloc.c index 37249b0c7a..a9541b9630 100644 --- a/malloc/malloc.c +++ b/malloc/malloc.c @@ -1292,7 +1292,10 @@ static void free_atfork(); /* sizes, alignments */ #define SIZE_SZ (sizeof(INTERNAL_SIZE_T)) -#define MALLOC_ALIGNMENT (SIZE_SZ + SIZE_SZ) +/* Allow the default to be overwritten on the compiler command line. */ +#ifndef MALLOC_ALIGNMENT +# define MALLOC_ALIGNMENT (SIZE_SZ + SIZE_SZ) +#endif #define MALLOC_ALIGN_MASK (MALLOC_ALIGNMENT - 1) #define MINSIZE (sizeof(struct malloc_chunk)) -- cgit v1.2.1