From 15c22fb0eb1e29a5dfc04b07dda958d6c415d5c1 Mon Sep 17 00:00:00 2001 From: wm4 Date: Tue, 20 May 2014 02:32:39 +0200 Subject: input: fix compilation on windows Currently I don't have a crosscompilation toolchain, so I couldn't test whether this actually compiles (and still can't). --- input/input.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'input') diff --git a/input/input.c b/input/input.c index ed9a15c017..b6dc43c79d 100644 --- a/input/input.c +++ b/input/input.c @@ -1008,10 +1008,8 @@ static void input_wait_read(struct input_ctx *ictx, int time) static void input_wait_read(struct input_ctx *ictx, int time) { - if (time > 0) { - struct timespec deadline = mpthread_get_deadline(time / 1000.0); - pthread_cond_timedwait(&ictx->wakeup, &ictx->mutex, &deadline); - } + if (time > 0) + mpthread_cond_timedwait_rel(&ictx->wakeup, &ictx->mutex, time / 1000.0); for (int i = 0; i < ictx->num_fds; i++) read_fd(ictx, &ictx->fds[i]); -- cgit v1.2.3