diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2013-10-17 13:58:23 +0200 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2013-10-17 13:58:23 +0200 |
commit | f043b8522e55308488448593bb4997614732a30a (patch) | |
tree | 10eb6f5cf5a0f5aeebe278a518fecbea826843c6 /package/firefox/patches/patch-media_webrtc_trunk_webrtc_system_wrappers_source_cpu_info_cc | |
parent | 0e9ca8afb6da39fea0555d5882e8eb293c3efb62 (diff) |
fix uClibc build
Diffstat (limited to 'package/firefox/patches/patch-media_webrtc_trunk_webrtc_system_wrappers_source_cpu_info_cc')
-rw-r--r-- | package/firefox/patches/patch-media_webrtc_trunk_webrtc_system_wrappers_source_cpu_info_cc | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/package/firefox/patches/patch-media_webrtc_trunk_webrtc_system_wrappers_source_cpu_info_cc b/package/firefox/patches/patch-media_webrtc_trunk_webrtc_system_wrappers_source_cpu_info_cc new file mode 100644 index 000000000..6083460c5 --- /dev/null +++ b/package/firefox/patches/patch-media_webrtc_trunk_webrtc_system_wrappers_source_cpu_info_cc @@ -0,0 +1,23 @@ +--- mozilla-release.orig/media/webrtc/trunk/webrtc/system_wrappers/source/cpu_info.cc 2013-09-11 01:15:18.000000000 +0200 ++++ mozilla-release/media/webrtc/trunk/webrtc/system_wrappers/source/cpu_info.cc 2013-10-15 12:21:59.000000000 +0200 +@@ -38,11 +38,6 @@ WebRtc_UWord32 CpuInfo::DetectNumberOfCo + WEBRTC_TRACE(kTraceStateInfo, kTraceUtility, -1, + "Available number of cores:%d", number_of_cores_); + +-#elif defined(WEBRTC_LINUX) && !defined(WEBRTC_ANDROID) && !defined(WEBRTC_GONK) +- number_of_cores_ = get_nprocs(); +- WEBRTC_TRACE(kTraceStateInfo, kTraceUtility, -1, +- "Available number of cores:%d", number_of_cores_); +- + #elif defined(WEBRTC_BSD) || defined(WEBRTC_MAC) + int name[] = { + CTL_HW, +@@ -63,8 +58,6 @@ WebRtc_UWord32 CpuInfo::DetectNumberOfCo + "Failed to get number of cores"); + number_of_cores_ = 1; + } +-#elif defined(_SC_NPROCESSORS_ONLN) +- _numberOfCores = sysconf(_SC_NPROCESSORS_ONLN); + #else + WEBRTC_TRACE(kTraceWarning, kTraceUtility, -1, + "No function to get number of cores"); |