Skip to content

gs-shell: only call malloc_trim with glibc

malloc_trim is a GNU extension and therefore not present in non-glibc C libraries such as musl. Wrapping this in an ifdef allows GNOME Software to be compiled again on musl.

This patch would allow GNOME Software to be upgraded to 42 on distros using musl such as Alpine Linux, Void Linux, postmarketOS, etc.

Contributes to #1154 (closed)

Edited by Dylan Van Assche

Merge request reports