diff options
Diffstat (limited to 'malloc/arena.c')
-rw-r--r-- | malloc/arena.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/malloc/arena.c b/malloc/arena.c index 02e88a391e..024e191b9e 100644 --- a/malloc/arena.c +++ b/malloc/arena.c @@ -347,6 +347,9 @@ __failing_morecore (ptrdiff_t d) { return (void *) MORECORE_FAILURE; } + +extern struct dl_open_hook *_dl_open_hook; +libc_hidden_proto (_dl_open_hook); # endif # if defined SHARED && defined USE_TLS && !USE___THREAD @@ -433,12 +436,10 @@ ptmalloc_init (void) Likewise if dlopened from statically linked program. */ Dl_info di; struct link_map *l; - extern struct dl_open_hook *_dl_open_hook; - libc_hidden_proto (_dl_open_hook); if (_dl_open_hook != NULL || (_dl_addr (ptmalloc_init, &di, &l, NULL) != 0 - && l->l_ns != LM_ID_BASE)) + && l->l_ns != LM_ID_BASE)) __morecore = __failing_morecore; #endif |