1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-12 14:14:48 +02:00

core: check that function malloc_trim is available, display an error if not available

This commit is contained in:
Sébastien Helleu
2024-03-06 22:36:37 +01:00
parent a1bee89ecc
commit 68598de958
3 changed files with 10 additions and 0 deletions
+1
View File
@@ -192,6 +192,7 @@ include(CheckSymbolExists)
check_include_files("langinfo.h" HAVE_LANGINFO_CODESET)
check_include_files("sys/resource.h" HAVE_SYS_RESOURCE_H)
check_symbol_exists("malloc_trim" "malloc.h" HAVE_MALLOC_TRIM)
check_function_exists(mallinfo HAVE_MALLINFO)
check_function_exists(mallinfo2 HAVE_MALLINFO2)