Skip to content
Commit f6310c2b authored by Heiko Becker's avatar Heiko Becker 🏃
Browse files

Detect the presence of malloc_trim to fix the build with musl



malloc_trim is indeed a GNU extension, but an extension of glibc.
Relying on __GNUC__ unfortunately doesn't help with that. Check for
the actual presence of malloc_trim with cmake's check_function_exists
instead.
This fixes the build with musl libc, which doesn't come with
malloc_trim.

Co-authored-by: default avatarAhmad Samir <a.samirh78@gmail.com>
parent 291767dd
Pipeline #168652 passed with stage
in 2 minutes and 23 seconds
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment