summaryrefslogtreecommitdiffstats
path: root/stream
diff options
context:
space:
mode:
authorJames Ross-Gowan <rossymiles@gmail.com>2013-07-13 16:42:14 +1000
committerwm4 <wm4@nowhere>2013-07-13 14:43:54 +0200
commitea7e54cb347b13d8036f42fcf3c8263f58fcd636 (patch)
tree07fa44220b455357de50627a45716d1502f47c7d /stream
parent58c92bce690568ba6ff20d67e51d7cb9f7e6ce57 (diff)
downloadmpv-ea7e54cb347b13d8036f42fcf3c8263f58fcd636.tar.bz2
mpv-ea7e54cb347b13d8036f42fcf3c8263f58fcd636.tar.xz
w32: silence some warnings
Diffstat (limited to 'stream')
-rw-r--r--stream/cache.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/stream/cache.c b/stream/cache.c
index 4a062538db..364ef68891 100644
--- a/stream/cache.c
+++ b/stream/cache.c
@@ -134,7 +134,7 @@ static int cond_timed_wait(pthread_cond_t *cond, pthread_mutex_t *mutex,
double timeout)
{
struct timespec ts;
-#if _POSIX_TIMERS > 0
+#if defined(_POSIX_TIMERS) && _POSIX_TIMERS > 0
clock_gettime(CLOCK_REALTIME, &ts);
#else
struct timeval tv;