]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
Don't enable moncontrol if non-glibc on Linux. Fixes linking against musl
authorcloudwalk <cloudwalk@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 15 Jun 2020 00:47:35 +0000 (00:47 +0000)
committerRudolf Polzer <divVerent@gmail.com>
Fri, 12 Mar 2021 21:28:08 +0000 (13:28 -0800)
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

index c32e9d2390415f6ee633a1179a85eb578e3175f7..f1c0d60c3324cf3c48ca39fbd939891d39adf95f 100644 (file)
@@ -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