зеркало из https://github.com/mozilla/gecko-dev.git
Bug 947862 - Initialize RealTimeClock on BSDs. r=jesup
This commit is contained in:
Родитель
934a947970
Коммит
4632c55564
|
@ -15,7 +15,7 @@
|
|||
#include <Windows.h>
|
||||
#include <WinSock.h>
|
||||
#include <MMSystem.h>
|
||||
#elif ((defined WEBRTC_LINUX) || (defined WEBRTC_MAC))
|
||||
#elif ((defined WEBRTC_LINUX) || (defined WEBRTC_BSD) || (defined WEBRTC_MAC))
|
||||
#include <sys/time.h>
|
||||
#include <time.h>
|
||||
#endif
|
||||
|
@ -209,7 +209,7 @@ class WindowsRealTimeClock : public RealTimeClock {
|
|||
WindowsHelpTimer* _helpTimer;
|
||||
};
|
||||
|
||||
#elif ((defined WEBRTC_LINUX) || (defined WEBRTC_MAC))
|
||||
#elif ((defined WEBRTC_LINUX) || (defined WEBRTC_BSD) || (defined WEBRTC_MAC))
|
||||
class UnixRealTimeClock : public RealTimeClock {
|
||||
public:
|
||||
UnixRealTimeClock() {}
|
||||
|
@ -240,7 +240,7 @@ Clock* Clock::GetRealTimeClock() {
|
|||
#if defined(_WIN32)
|
||||
static WindowsRealTimeClock clock(&global_help_timer);
|
||||
return &clock;
|
||||
#elif defined(WEBRTC_LINUX) || defined(WEBRTC_MAC)
|
||||
#elif ((defined WEBRTC_LINUX) || (defined WEBRTC_BSD) || (defined WEBRTC_MAC))
|
||||
static UnixRealTimeClock clock;
|
||||
return &clock;
|
||||
#else
|
||||
|
|
Загрузка…
Ссылка в новой задаче