Use mallinfo2() instead of mallinfo() when available

glibc 2.33 deprecates mallinfo in favor of a struct that returns
its members as size_ts instead of ints.
This commit is contained in:
Christian Kreibich 2021-07-01 16:40:28 -07:00
parent 727fca26e3
commit 63259ef9fa
3 changed files with 10 additions and 4 deletions

View file

@ -22,6 +22,9 @@
/* Define if you have the `mallinfo' function. */
#cmakedefine HAVE_MALLINFO
/* Define if you have the `mallinfo2' function. */
#cmakedefine HAVE_MALLINFO2
/* Define if you have the <memory.h> header file. */
#cmakedefine HAVE_MEMORY_H