about summary refs log tree commit diff stats
path: root/src/libtools/threads.c
diff options
context:
space:
mode:
authorptitSeb <sebastien.chev@gmail.com>2021-07-06 18:31:55 +0200
committerptitSeb <sebastien.chev@gmail.com>2021-07-06 18:31:55 +0200
commit91787c4dbfdbf1c6b4b284de2bbade03f15ed8d1 (patch)
treefc60ceecf51e95f123211d1ec208258db90dcd43 /src/libtools/threads.c
parentc534a9d78cb7bddb70946b356d5b4ea494333c2d (diff)
downloadbox64-91787c4dbfdbf1c6b4b284de2bbade03f15ed8d1.tar.gz
box64-91787c4dbfdbf1c6b4b284de2bbade03f15ed8d1.zip
Try to fix compilation on old libc
Diffstat (limited to 'src/libtools/threads.c')
-rwxr-xr-xsrc/libtools/threads.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/libtools/threads.c b/src/libtools/threads.c
index 7b243d58..3dd10603 100755
--- a/src/libtools/threads.c
+++ b/src/libtools/threads.c
@@ -835,6 +835,10 @@ pthread_mutex_t* getAlignedMutexWithInit(pthread_mutex_t* m, int init)
 	}
 	pthread_mutex_t* ret = GetMutex(k);
 
+	#ifndef __PTHREAD_MUTEX_HAVE_PREV
+	#define __PTHREAD_MUTEX_HAVE_PREV 1
+	#endif
+
 	if(init) {
 		if(am->sign == SIGNMTX) {
 			int kind = ((int*)am->m)[3+__PTHREAD_MUTEX_HAVE_PREV];	// extract kind from original mutex