From cb6ecb6818a0c4c4cb0fd946ce5be3f5aa965e09 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Wed, 6 Mar 2024 23:09:00 +0100 Subject: core: check if malloc.h is present, independently of function malloc_trim --- CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index 76dbd39dd..5ab265408 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -192,7 +192,9 @@ include(CheckSymbolExists) check_include_files("langinfo.h" HAVE_LANGINFO_CODESET) check_include_files("sys/resource.h" HAVE_SYS_RESOURCE_H) +check_include_files("malloc.h" HAVE_MALLOC_H) check_symbol_exists("malloc_trim" "malloc.h" HAVE_MALLOC_TRIM) + check_function_exists(mallinfo HAVE_MALLINFO) check_function_exists(mallinfo2 HAVE_MALLINFO2) -- cgit v1.2.3