mirror of
https://github.com/mpv-player/mpv
synced 2025-01-02 13:02:24 +00:00
w32: silence some warnings
This commit is contained in:
parent
58c92bce69
commit
ea7e54cb34
@ -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);
|
||||
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user