From 92fe490270927f2b0aab605cb1f80ed06dbfc17b Mon Sep 17 00:00:00 2001 From: Soren Jorvang Date: Sun, 21 Nov 2010 20:45:42 +0000 Subject: [PATCH] POSIX feature symbols can be defined even if not implemented. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6454 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/Core/Common/Src/Thread.h | 2 +- Source/Core/Common/Src/Timer.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Core/Common/Src/Thread.h b/Source/Core/Common/Src/Thread.h index e93cf20160..9fe75df1c3 100644 --- a/Source/Core/Common/Src/Thread.h +++ b/Source/Core/Common/Src/Thread.h @@ -63,7 +63,7 @@ //for (clock_gettime|gettimeofday) and struct time(spec|val) #include #include -#if !defined(_POSIX_TIMERS) || _POSIX_TIMERS == 0 || !defined(_POSIX_MONOTONIC_CLOCK) +#if !defined _POSIX_MONOTONIC_CLOCK || _POSIX_MONOTONIC_CLOCK < 200112L #define USE_GETTIMEOFDAY #include #endif diff --git a/Source/Core/Common/Src/Timer.cpp b/Source/Core/Common/Src/Timer.cpp index 1533ae71b5..930212837a 100644 --- a/Source/Core/Common/Src/Timer.cpp +++ b/Source/Core/Common/Src/Timer.cpp @@ -23,7 +23,7 @@ #include #else #include -#if !defined(_POSIX_TIMERS) || _POSIX_TIMERS == 0 || !defined(_POSIX_MONOTONIC_CLOCK) +#if !defined _POSIX_MONOTONIC_CLOCK || _POSIX_MONOTONIC_CLOCK < 200112L #define USE_GETTIMEOFDAY #include #endif