From 0482fa8757a50271fcd287c08396aa97e1546bb3 Mon Sep 17 00:00:00 2001 From: s00se <95649696+s00se@users.noreply.github.com> Date: Wed, 19 Aug 2026 20:04:03 -0600 Subject: [PATCH] Add API check to Android spinlock shim Android spinlock shim not needed on modern (API 24+) Android, this fixes compiling on Termux Signed-off-by: s00se <95649696+s00se@users.noreply.github.com> --- client/src/cmdparser.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/cmdparser.c b/client/src/cmdparser.c index 2341d44ae..b4e57775a 100644 --- a/client/src/cmdparser.c +++ b/client/src/cmdparser.c @@ -30,7 +30,7 @@ # include "pthread_spin_lock_shim.h" // spinlock shim for OSX .. #endif -#ifdef __ANDROID__ +#if defined(__ANDROID__) && __ANDROID_API__ < 24 //Spinlock patch for building with Android NDK typedef pthread_mutex_t pthread_spinlock_t;