From 0331d98ae7752893dac11e53b2d29dd38dcd2634 Mon Sep 17 00:00:00 2001 From: Andreas Schiffler Date: Sat, 9 Mar 2013 09:24:43 -0800 Subject: [PATCH] Fix SDL_TryLockMutex compile error when FAKE_RECURSIVE_MUTEX is defined --- src/thread/pthread/SDL_sysmutex.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/thread/pthread/SDL_sysmutex.c b/src/thread/pthread/SDL_sysmutex.c index f67cdf6c4..faf178771 100644 --- a/src/thread/pthread/SDL_sysmutex.c +++ b/src/thread/pthread/SDL_sysmutex.c @@ -134,7 +134,7 @@ SDL_TryLockMutex(SDL_mutex * mutex) retval = 0; #if FAKE_RECURSIVE_MUTEX this_thread = pthread_self(); - if (mutex->owner == this_thead) { + if (mutex->owner == this_thread) { ++mutex->recursive; } else { /* The order of operations is important.