From 8b47c85e9f68469c822e942b5c22d4e5aa3b3700 Mon Sep 17 00:00:00 2001 From: cloudwalk Date: Mon, 15 Jun 2020 00:47:35 +0000 Subject: [PATCH] Don't enable moncontrol if non-glibc on Linux. Fixes linking against musl Partially from https://gitlab.com/xonotic/darkplaces/-/merge_requests/86 git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12676 d7cf8633-e32d-0410-b094-e92efae38249 ::stable-branch::merge=852599bd359f9b6482f47fc5b9ab7d222119129f --- sys_shared.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys_shared.c b/sys_shared.c index c32e9d23..f1c0d60c 100644 --- a/sys_shared.c +++ b/sys_shared.c @@ -69,7 +69,7 @@ void Sys_AllowProfiling(qboolean enable) else moncleanup(); #endif -#elif defined(__linux__) || defined(__FreeBSD__) +#elif (defined(__linux__) && (defined(__GLIBC__) || defined(__GNU_LIBRARY__))) || defined(__FreeBSD__) extern int moncontrol(int); moncontrol(enable); #endif -- 2.39.2