summaryrefslogtreecommitdiffstats
path: root/generic/tclThread.c
diff options
context:
space:
mode:
Diffstat (limited to 'generic/tclThread.c')
-rw-r--r--generic/tclThread.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/generic/tclThread.c b/generic/tclThread.c
index c2112b7..7882a48 100644
--- a/generic/tclThread.c
+++ b/generic/tclThread.c
@@ -304,7 +304,9 @@ void
TclMutexUnlockAndFinalize(
Tcl_Mutex *mutexPtr)
{
+#ifdef TCL_THREADS
Tcl_Mutex mutex;
+#endif
TclpMasterLock();
TclpMutexLock();
#ifdef TCL_THREADS