Fix check for malloc_usable_size()

The CMake compilation check for malloc_usable_size() was broken.

This is probably a permanent fix for #4207.
This commit is contained in:
Janek Bevendorff 2022-03-22 02:07:37 +01:00 committed by Janek Bevendorff
parent 11351613ed
commit 75e857bbfc

View File

@ -522,7 +522,7 @@ if(UNIX)
HAVE_MALLOC_H)
check_cxx_source_compiles("#include <malloc.h>
int main() { malloc_usable_size(NULL, 0); return 0; }"
int main() { malloc_usable_size(NULL); return 0; }"
HAVE_MALLOC_USABLE_SIZE)
check_cxx_source_compiles("#include <sys/resource.h>