check if malloc_trim() is available

This commit is contained in:
Wim Taymans 2023-10-04 10:59:26 +02:00
parent 7e2f6757fc
commit 8680c74d1b
2 changed files with 4 additions and 2 deletions

View file

@ -435,6 +435,7 @@ check_functions = [
['reallocarray', '#include <stdlib.h>', ['-D_GNU_SOURCE'], []],
['sigabbrev_np', '#include <string.h>', ['-D_GNU_SOURCE'], []],
['XSetIOErrorExitHandler', '#include <X11/Xlib.h>', [], [x11_dep]],
['malloc_trim', '#include <malloc.h>', [], []],
]
foreach f : check_functions