1
Author: mallinath@google.com
2
Description: Allow unknown architectures
3
Derived from part of libjingle r305:
4
http://code.google.com/p/libjingle/source/detail?r=305
6
--- a/protocols/jabber/googletalk/libjingle/talk/base/systeminfo.cc
7
+++ b/protocols/jabber/googletalk/libjingle/talk/base/systeminfo.cc
8
@@ -102,7 +102,7 @@ SystemInfo::SystemInfo()
10
cpu_arch_ = SI_ARCH_X86;
12
-#error "Unknown architecture."
13
+ cpu_arch_ = SI_ARCH_UNKNOWN;
17
@@ -144,8 +144,8 @@ SystemInfo::SystemInfo()
18
proc_info.GetNumCpus(&logical_cpus_);
19
proc_info.GetNumPhysicalCpus(&physical_cpus_);
20
proc_info.GetCpuFamily(&cpu_family_);
21
-#if !defined(__arm__)
22
- // These values aren't found on ARM systems.
24
+ // These values only apply to x86 systems.
25
proc_info.GetSectionIntValue(0, "model", &cpu_model_);
26
proc_info.GetSectionIntValue(0, "stepping", &cpu_stepping_);
27
proc_info.GetSectionIntValue(0, "cpu MHz", &cpu_speed_);
28
--- a/protocols/jabber/googletalk/libjingle/talk/base/systeminfo.h
29
+++ b/protocols/jabber/googletalk/libjingle/talk/base/systeminfo.h
30
@@ -37,6 +37,7 @@ namespace talk_base {
34
+ SI_ARCH_UNKNOWN = -1,