mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-28 00:21:52 +03:00
Revert __malloc_initialize_hook symbol poisoning
It turns out the Emacs-internal malloc implementation uses __malloc_* symbols. If glibc poisons them in <stdc-pre.h>, Emacs will no longer compile.
This commit is contained in:
@ -1851,9 +1851,9 @@ static void *memalign_hook_ini (size_t alignment, size_t sz,
|
||||
const void *caller) __THROW;
|
||||
|
||||
#if HAVE_MALLOC_INIT_HOOK
|
||||
void weak_variable (*old__malloc_initialize_hook) (void) = NULL;
|
||||
compat_symbol (libc, old__malloc_initialize_hook,
|
||||
old__malloc_initialize_hook, GLIBC_2_0);
|
||||
void weak_variable (*__malloc_initialize_hook) (void) = NULL;
|
||||
compat_symbol (libc, __malloc_initialize_hook,
|
||||
__malloc_initialize_hook, GLIBC_2_0);
|
||||
#endif
|
||||
|
||||
void weak_variable (*__free_hook) (void *__ptr,
|
||||
|
Reference in New Issue
Block a user