From 2f302c44d9dbc129a252f4a227f82b8e626f186b Mon Sep 17 00:00:00 2001 From: "heikki@donna.mysql.fi" <> Date: Tue, 5 Jun 2001 21:49:03 +0300 Subject: [PATCH] mem0pool.h Fix a bus error in aligment of longlong on Solaris --- innobase/include/mem0pool.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/innobase/include/mem0pool.h b/innobase/include/mem0pool.h index 14198920bc..eb675b4a7f 100644 --- a/innobase/include/mem0pool.h +++ b/innobase/include/mem0pool.h @@ -31,7 +31,8 @@ struct mem_area_struct{ }; /* Each memory area takes this many extra bytes for control information */ -#define MEM_AREA_EXTRA_SIZE (sizeof(struct mem_area_struct)) +#define MEM_AREA_EXTRA_SIZE (ut_calc_align(sizeof(struct mem_area_struct),\ + UNIV_MEM_ALIGNMENT)) /************************************************************************ Creates a memory pool. */ -- 2.30.9