Port better to platforms lacking aligned_alloc
Problem reported by Ken Brown (Bug#22522). * src/lisp.h (hybrid_aligned_alloc) [HYBRID_MALLOC && !HAVE_ALIGNED_ALLOC]: New decl.
This commit is contained in:
parent
39d8cac38b
commit
b65255ea20
1 changed files with 4 additions and 1 deletions
|
@ -3771,11 +3771,14 @@ extern void check_cons_list (void);
|
|||
INLINE void (check_cons_list) (void) { lisp_h_check_cons_list (); }
|
||||
#endif
|
||||
|
||||
#if !defined DOUG_LEA_MALLOC && !defined HYBRID_MALLOC && !defined SYSTEM_MALLOC
|
||||
/* Defined in gmalloc.c. */
|
||||
#if !defined DOUG_LEA_MALLOC && !defined HYBRID_MALLOC && !defined SYSTEM_MALLOC
|
||||
extern size_t __malloc_extra_blocks;
|
||||
extern void *aligned_alloc (size_t, size_t);
|
||||
#endif
|
||||
#if defined HYBRID_MALLOC && !defined HAVE_ALIGNED_ALLOC
|
||||
extern void *hybrid_aligned_alloc (size_t, size_t) ATTRIBUTE_MALLOC_SIZE ((2));
|
||||
#endif
|
||||
extern void malloc_enable_thread (void);
|
||||
|
||||
#ifdef REL_ALLOC
|
||||
|
|
Loading…
Add table
Reference in a new issue