summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--base/sys_info_posix.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/base/sys_info_posix.cc b/base/sys_info_posix.cc
index b46d1b4..61c527a 100644
--- a/base/sys_info_posix.cc
+++ b/base/sys_info_posix.cc
@@ -134,13 +134,14 @@ size_t SysInfo::VMAllocationGranularity() {
return getpagesize();
}
+#if defined(OS_MACOSX)
// static
void SysInfo::CacheSysInfo() {
// Due to startup time concerns [premature optimization?] we only cache values
// from functions we know to be called in the renderer & fail when the sandbox
// is enabled.
NumberOfProcessors();
-
}
+#endif
} // namespace base