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-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=852599bd359f9b6482f47fc5b9ab7d222119129f;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 --- diff --git a/sys_shared.c b/sys_shared.c index 0db4c034..89678467 100644 --- a/sys_shared.c +++ b/sys_shared.c @@ -77,7 +77,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