aboutsummaryrefslogtreecommitdiffstats
path: root/src/alloc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/alloc.c')
-rw-r--r--src/alloc.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/alloc.c b/src/alloc.c
index 57ef4c5deab..b40c1f387cb 100644
--- a/src/alloc.c
+++ b/src/alloc.c
@@ -157,10 +157,12 @@ malloc_initialize_hook (void)
157 } 157 }
158} 158}
159 159
160/* Declare the malloc initialization hook, which runs before 'main' starts.
161 EXTERNALLY_VISIBLE works around Bug#22522. */
160# ifndef __MALLOC_HOOK_VOLATILE 162# ifndef __MALLOC_HOOK_VOLATILE
161# define __MALLOC_HOOK_VOLATILE 163# define __MALLOC_HOOK_VOLATILE
162# endif 164# endif
163voidfuncptr __MALLOC_HOOK_VOLATILE __malloc_initialize_hook 165voidfuncptr __MALLOC_HOOK_VOLATILE __malloc_initialize_hook EXTERNALLY_VISIBLE
164 = malloc_initialize_hook; 166 = malloc_initialize_hook;
165 167
166#endif 168#endif