about summary refs log tree commit diff stats
path: root/src/libtools/threads.c
diff options
context:
space:
mode:
authorptitSeb <sebastien.chev@gmail.com>2022-10-26 14:10:12 +0200
committerptitSeb <sebastien.chev@gmail.com>2022-10-26 14:10:12 +0200
commit5a2a546090b78dda3e9de2cc0c2a43a3bb936576 (patch)
tree3cbc7fbf03d65bbe514383069fc713e462c10ec1 /src/libtools/threads.c
parentbaf6fc89873fbf7af3bd46d539d2ff2fbc13ed5f (diff)
downloadbox64-5a2a546090b78dda3e9de2cc0c2a43a3bb936576.tar.gz
box64-5a2a546090b78dda3e9de2cc0c2a43a3bb936576.zip
Fix non-dynarec build
Diffstat (limited to 'src/libtools/threads.c')
-rwxr-xr-xsrc/libtools/threads.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libtools/threads.c b/src/libtools/threads.c
index 02a5de14..3ef9dc35 100755
--- a/src/libtools/threads.c
+++ b/src/libtools/threads.c
@@ -679,10 +679,10 @@ int EXPORT my_pthread_once(x64emu_t* emu, int* once, void* cb)
 	int old = native_lock_xchg_d(once, 1);
 	#else
 	int old = *once;	// outside of the mutex in case once is badly formed
-	pthread_mutex_lock(my_context->)mutex_lock);
+	pthread_mutex_lock(my_context->mutex_lock);
 	old = *once;
 	*once = 1;
-	pthread_mutex_unlock(my_context->)mutex_lock);
+	pthread_mutex_unlock(my_context->mutex_lock);
 	#endif
 	if(old)
 		return 0;