host/mtrace: use only if using glibc

This commit is contained in:
Martin Pulec
2025-04-14 09:53:19 +02:00
parent 222499a246
commit d2fab937f7

View File

@@ -135,7 +135,7 @@ extern "C" {
}
#endif
#ifdef __linux__
#ifdef __gnu_linux__
#include <mcheck.h>
#endif
@@ -213,7 +213,7 @@ void common_cleanup(struct init_data *init)
}
delete init;
#ifdef __linux__
#ifdef __gnu_linux__
muntrace();
#endif
@@ -519,7 +519,7 @@ struct init_data *common_preinit(int argc, char *argv[])
ug_rand_init();
#ifdef __linux__
#ifdef __gnu_linux__
mtrace();
#endif