#include <features.h> as requested

This commit is contained in:
Yuriy Chernyshov 2022-01-05 21:19:50 +03:00 committed by Alexander Lapenkov
parent 18510020e7
commit c91e62dd37

View File

@ -3231,6 +3231,8 @@ je_valloc(size_t size) {
* passed an extra argument for the caller return address, which will be
* ignored.
*/
#include <features.h> // 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;