From: cloudwalk Date: Mon, 15 Jun 2020 00:47:35 +0000 (+0000) Subject: Don't enable moncontrol if non-glibc on Linux. Fixes linking against musl X-Git-Tag: xonotic-v0.8.5~11 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=8b47c85e9f68469c822e942b5c22d4e5aa3b3700;p=xonotic%2Fdarkplaces.git 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 --- 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