From 771aa952a52656a2cce7ec55eb5d4bb7b0427adb Mon Sep 17 00:00:00 2001 From: dborth Date: Fri, 29 May 2009 15:19:29 +0000 Subject: [PATCH] thread compiling fix --- SDL/src/thread/wii/SDL_syscond.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/SDL/src/thread/wii/SDL_syscond.c b/SDL/src/thread/wii/SDL_syscond.c index 5668c14..1f5ab89 100644 --- a/SDL/src/thread/wii/SDL_syscond.c +++ b/SDL/src/thread/wii/SDL_syscond.c @@ -31,6 +31,7 @@ #include "SDL_sysmutex_c.h" #include +#include struct SDL_cond { @@ -111,7 +112,6 @@ extern int clock_gettime(struct timespec *tp); int SDL_CondWaitTimeout(SDL_cond *cond, SDL_mutex *mutex, Uint32 ms) { - int retval; struct timespec now; struct timespec abstime; @@ -129,9 +129,7 @@ int SDL_CondWaitTimeout(SDL_cond *cond, SDL_mutex *mutex, Uint32 ms) abstime.tv_nsec -= 1000000000; } - LWP_CondTimedWait ( cond->cond, mutex->id, &abstime ) ; - - return retval; + return LWP_CondTimedWait ( cond->cond, mutex->id, &abstime ) ; } /* Wait on the condition variable forever */