diff options
| author | Glenn Rice <glennricster@gmail.com> | 2010-11-21 19:13:55 +0000 |
|---|---|---|
| committer | Glenn Rice <glennricster@gmail.com> | 2010-11-21 19:13:55 +0000 |
| commit | 39a4781a5fba29f51f8c0354ea041528767e183a (patch) | |
| tree | abbd65f8a307143aaf5d352730598dc5c6131fbd /Source/Core/Common/Src/Timer.cpp | |
| parent | b8218726aa523bcfce42e3835c1fcb4e313c6275 (diff) | |
Check if CLOCK_MONOTONIC is supported before using clock_gettime.
Fix the cmake check to see if -Wno-unused-result is supported by the compiler.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6453 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Core/Common/Src/Timer.cpp')
| -rw-r--r-- | Source/Core/Common/Src/Timer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Core/Common/Src/Timer.cpp b/Source/Core/Common/Src/Timer.cpp index 6583202f99..1533ae71b5 100644 --- a/Source/Core/Common/Src/Timer.cpp +++ b/Source/Core/Common/Src/Timer.cpp @@ -23,7 +23,7 @@ #include <sys/timeb.h> #else #include <unistd.h> -#if !defined(_POSIX_TIMERS) || _POSIX_TIMERS == 0 +#if !defined(_POSIX_TIMERS) || _POSIX_TIMERS == 0 || !defined(_POSIX_MONOTONIC_CLOCK) #define USE_GETTIMEOFDAY #include <sys/time.h> #endif |
