Skip to content

Commit

Permalink
Fix check for malloc_usable_size()
Browse files Browse the repository at this point in the history
The CMake compilation check for malloc_usable_size() was broken.

This is probably a permanent fix for #4207.
  • Loading branch information
phoerious committed Mar 22, 2022
1 parent 1135161 commit 75e857b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit 75e857b

Please sign in to comment.