From ea7e54cb347b13d8036f42fcf3c8263f58fcd636 Mon Sep 17 00:00:00 2001 From: James Ross-Gowan Date: Sat, 13 Jul 2013 16:42:14 +1000 Subject: w32: silence some warnings --- core/input/input.c | 2 ++ stream/cache.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/core/input/input.c b/core/input/input.c index e87d9bb560..36543f3e5f 100644 --- a/core/input/input.c +++ b/core/input/input.c @@ -1154,12 +1154,14 @@ static int default_cmd_func(int fd, char *buf, int l) } } +#ifndef __MINGW32__ static int read_wakeup(void *ctx, int fd) { char buf[100]; read(fd, buf, sizeof(buf)); return MP_INPUT_NOTHING; } +#endif static bool bind_matches_key(struct cmd_bind *bind, int n, const int *keys); 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; -- cgit v1.2.3