]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - sys_shared.c
Fix pure data entities being linked into the area grid, causing performance hit
[xonotic/darkplaces.git] / sys_shared.c
index 03c059850eaf8183e6a192656adf0df0080d3af5..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
@@ -238,11 +238,10 @@ void* Sys_GetProcAddress (dllhandle_t handle, const char* name)
 # define HAVE_Sleep 1
 #endif
 
+#ifndef WIN32
 #if defined(CLOCK_MONOTONIC) || defined(CLOCK_HIRES)
 # define HAVE_CLOCKGETTIME 1
 #endif
-
-#ifndef WIN32
 // FIXME improve this check, manpage hints to DST_NONE
 # define HAVE_GETTIMEOFDAY 1
 #endif