From 48141f3c1787de941d969ad1e6675611b2b650c2 Mon Sep 17 00:00:00 2001 From: Michael Okoko Date: Fri, 26 Mar 2021 20:48:59 +0100 Subject: Replace mallinfo with mallinfo2 on supported systems `mallinfo` is deprecated since glibc 2.33 and has been replaced by mallinfo2. The deprecation causes building the server to fail if glibc version is > 2.33. Check if mallinfo2 exist on the system and use it instead. --- config.h.cmake | 1 + 1 file changed, 1 insertion(+) (limited to 'config.h.cmake') diff --git a/config.h.cmake b/config.h.cmake index 0e19dd44694..c74592b4a65 100644 --- a/config.h.cmake +++ b/config.h.cmake @@ -177,6 +177,7 @@ #cmakedefine HAVE_DECL_MADVISE 1 #cmakedefine HAVE_DECL_MHA_MAPSIZE_VA 1 #cmakedefine HAVE_MALLINFO 1 +#cmakedefine HAVE_MALLINFO2 1 #cmakedefine HAVE_MEMCPY 1 #cmakedefine HAVE_MEMMOVE 1 #cmakedefine HAVE_MKSTEMP 1 -- cgit v1.2.1