]> 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)
committercloudwalk <cloudwalk@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 15 Jun 2020 00:47:35 +0000 (00:47 +0000)
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

sys_shared.c

index 0db4c03479474e7fd81432ecb3f708d9e546111c..89678467e9f6d6ec2bf4021d1de8030e7e54ce36 100644 (file)
@@ -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