build: Check for mallinfo2 instead of mallinfo
authorTimm Bäder <mail@baedert.org>
Fri, 12 Feb 2021 07:36:21 +0000 (08:36 +0100)
committerTimm Bäder <mail@baedert.org>
Fri, 12 Feb 2021 07:39:40 +0000 (08:39 +0100)
Similar to https://github.com/llvm/llvm-project/commit/e89fcbfad6a3edb203ebdc2b1ead275fe909281a
but the tests we use mallinfo() in really aren't important to not worth
the effort to differentiate between mallinfo and mallinfo2. Only check
for mallinfo2().

meson.build

index 729aa3ea193d5a985c09cf95d96dcdb483e10688..8677754121768602a99b5881b3ad1363fcab701a 100644 (file)
@@ -198,7 +198,7 @@ check_functions = [
   '_lock_file',
   'flockfile',
   'mkstemp',
-  'mallinfo',
+  'mallinfo2',
   'sincos',
   'sincosf',
 ]