From c91e62dd375637e1d029af5385ce633a74f98712 Mon Sep 17 00:00:00 2001 From: Yuriy Chernyshov Date: Wed, 5 Jan 2022 21:19:50 +0300 Subject: [PATCH] #include as requested --- src/jemalloc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/jemalloc.c b/src/jemalloc.c index 990855c4..fb435248 100644 --- a/src/jemalloc.c +++ b/src/jemalloc.c @@ -3231,6 +3231,8 @@ je_valloc(size_t size) { * passed an extra argument for the caller return address, which will be * ignored. */ +#include // defines __GLIBC__ if we are compiling against glibc + JEMALLOC_EXPORT void (*__free_hook)(void *ptr) = je_free; JEMALLOC_EXPORT void *(*__malloc_hook)(size_t size) = je_malloc; JEMALLOC_EXPORT void *(*__realloc_hook)(void *ptr, size_t size) = je_realloc;