basic/selinux: work around mallinfo deprecation
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 9 Oct 2020 14:48:03 +0000 (16:48 +0200)
committerLennart Poettering <lennart@poettering.net>
Mon, 12 Oct 2020 13:51:39 +0000 (15:51 +0200)
commit4b6f74f5a0943e0abfa8e6997811f8f7b7f00a15
treec0d7486eb957a2e22137e7794b83568152a38947
parentd775d8e6f7a69f5c1d4c63d29877cb5380c14016
basic/selinux: work around mallinfo deprecation

Latest glibc has deprecated mallinfo(), so it might become unavailable at some point
in the future. There is malloc_info(), but it returns XML, ffs. I think the information
that we get from mallinfo() is quite useful, so let's use mallinfo() if available, and
not otherwise.
meson.build
src/basic/macro.h
src/basic/selinux-util.c