]> git.ipfire.org Git - thirdparty/systemd.git/commit
mallinfo-util: assume mallinfo() exists
authorYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 9 Jun 2025 15:39:38 +0000 (00:39 +0900)
committerLennart Poettering <lennart@poettering.net>
Wed, 18 Jun 2025 08:45:27 +0000 (10:45 +0200)
commitabb99d3168259136187f81e0f701cda712ffd78d
treee3dbcbab5b2a2bfbfe0035b2f7125f1f85c4be80
parent17f2b40f2229e7efd4c97f7a101c391c32f7d292
mallinfo-util: assume mallinfo() exists

The check existed for musl. Let's remove it, as we explicitly request glibc.

While removing the check, this also drops generic_mallinfo, introduces
a tiny converter from struct mallinfo to struct mallinfo2 if mallinfo2()
does not exist, and renames mallinfo-util.h to malloc.h.

With this change, we can drop many ifdefs and casts in .c files.
meson.build
src/basic/include/malloc.h [new file with mode: 0644]
src/basic/mallinfo-util.h [deleted file]
src/libsystemd/sd-event/sd-event.c
src/shared/selinux-util.c