Closed
Bug 1013907
Opened 10 years ago
Closed 10 years ago
content/media/webrtc/LoadMonitor.cpp:312:32: error: '_SC_CLK_TCK' was not declared in this scope (on *BSD platforms)
Categories
(Core :: WebRTC, defect)
Tracking
()
RESOLVED
FIXED
mozilla32
People
(Reporter: jbeich, Assigned: jbeich)
References
Details
Attachments
(1 file)
1.33 KB,
patch
|
gcp
:
review+
|
Details | Diff | Splinter Review |
clang 3.4.1 In file included from content/media/webrtc/Unified_cpp_content_media_webrtc0.cpp:28: content/media/webrtc/LoadMonitor.cpp:312:32: error: use of undeclared identifier '_SC_CLK_TCK' mTicksPerInterval = (sysconf(_SC_CLK_TCK) * mLoadUpdateInterval) / 1000; ^ In file included from content/media/webrtc/Unified_cpp_content_media_webrtc0.cpp:67: In file included from content/media/webrtc/MediaEngineWebRTCAudio.cpp:5: /home/holo/.cache/a/overlay/gecko/www/firefox-nightly/work/mozilla-inbound-7ba8c658dc58/content/media/webrtc/MediaEngineWebRTC.h:345:7: warning: private field 'mSamples' is not used [-Wunused-private-field] int mSamples; // int to avoid conversions when comparing/etc to samplingFr... ^ 1 warning and 1 error generated. gcc 4.8.3 In file included from content/media/webrtc/Unified_cpp_content_media_webrtc0.cpp:28:0: content/media/webrtc/LoadMonitor.cpp: In member function 'nsresult mozilla::LoadInfo::Init(int)': content/media/webrtc/LoadMonitor.cpp:312:32: error: '_SC_CLK_TCK' was not declared in this scope mTicksPerInterval = (sysconf(_SC_CLK_TCK) * mLoadUpdateInterval) / 1000; ^ content/media/webrtc/LoadMonitor.cpp:312:43: error: 'sysconf' was not declared in this scope mTicksPerInterval = (sysconf(_SC_CLK_TCK) * mLoadUpdateInterval) / 1000; ^ UpdateSystemLoad() needs an implementation using kern.cp_time sysctl.
Attachment #8426179 -
Flags: review?(pkerr)
Comment 1•10 years ago
|
||
Comment on attachment 8426179 [details] [diff] [review] fix ifdefs Review of attachment 8426179 [details] [diff] [review]: ----------------------------------------------------------------- LGTM. Will throw it on try.
Attachment #8426179 -
Flags: review?(pkerr) → review+
Comment 2•10 years ago
|
||
https://tbpl.mozilla.org/?tree=Try&rev=83ec23f40c6e
Updated•10 years ago
|
Keywords: checkin-needed
Comment 3•10 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/c61733f749ec
Keywords: checkin-needed
Comment 4•10 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/c61733f749ec
Assignee: nobody → jbeich
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla32
You need to log in
before you can comment on or make changes to this bug.
Description
•