mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-01 13:48:56 +00:00
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
This commit is contained in:
parent
b8218726aa
commit
39a4781a5f
3 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue