--- mozglue/misc/Mutex_posix.cpp.orig	2024-08-07 00:46:39.000000000 -0400
+++ mozglue/misc/Mutex_posix.cpp	2024-10-31 15:06:52.000000000 -0400
@@ -11,7 +11,10 @@
 #include <stdio.h>
 
 #if defined(XP_DARWIN)
+#  include <Availability.h>
+#  if __MAC_OS_X_VERSION_MAX_ALLOWED >= 1070
 #  include <pthread_spis.h>
+#  endif
 #endif
 
 #include "mozilla/PlatformMutex.h"
