Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(512)

Unified Diff: webrtc/base/systeminfo.cc

Issue 1323453003: Fixes for PNaCl build of remoting client plugin in chromium. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc@master
Patch Set: Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webrtc/base/BUILD.gn ('k') | webrtc/modules/desktop_capture/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/base/systeminfo.cc
diff --git a/webrtc/base/systeminfo.cc b/webrtc/base/systeminfo.cc
index 1dc6a682e90e7ab88a092cb665924424d421c543..540de82313e837fe884a9609833563e00d31f11a 100644
--- a/webrtc/base/systeminfo.cc
+++ b/webrtc/base/systeminfo.cc
@@ -179,7 +179,7 @@ int64 SystemInfo::GetMemorySize() {
int error = sysctlbyname("hw.memsize", &memory, &len, NULL, 0);
if (error || memory == 0)
memory = -1;
-#else // WEBRTC_LINUX
+#elif defined(WEBRTC_LINUX)
memory = static_cast<int64>(sysconf(_SC_PHYS_PAGES)) *
static_cast<int64>(sysconf(_SC_PAGESIZE));
if (memory < 0) {
« no previous file with comments | « webrtc/base/BUILD.gn ('k') | webrtc/modules/desktop_capture/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698