Bug 947862 - Initialize RealTimeClock on BSDs. r=jesup

This commit is contained in:
Jan Beich 2013-12-09 21:07:46 +01:00
Родитель 934a947970
Коммит 4632c55564
1 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -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