diff options
-rw-r--r-- | unix/tclUnixThrd.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/unix/tclUnixThrd.c b/unix/tclUnixThrd.c index a9127a7..47e56d7 100644 --- a/unix/tclUnixThrd.c +++ b/unix/tclUnixThrd.c @@ -41,6 +41,7 @@ static pthread_mutex_t initLock = PTHREAD_MUTEX_INITIALIZER; */ static pthread_mutex_t allocLock = PTHREAD_MUTEX_INITIALIZER; +static pthread_mutex_t *allocLockPtr = &allocLock; /* * These are for the critical sections inside this file. @@ -279,7 +280,7 @@ Tcl_Mutex * Tcl_GetAllocMutex() { #ifdef TCL_THREADS - return (Tcl_Mutex *)&allocLock; + return (Tcl_Mutex *)&allocLockPtr; #else return NULL; #endif |