<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">Fix build errors on 10.6

--- mozglue/misc/Mutex_posix.cpp.orig	2022-07-09 14:28:00.000000000 -0400
+++ mozglue/misc/Mutex_posix.cpp	2022-07-09 14:31:34.000000000 -0400
@@ -11,7 +11,10 @@
 #include &lt;stdio.h&gt;
 
 #if defined(XP_DARWIN)
+#  include &lt;Availability.h&gt;
+#  if __MAC_OS_X_VERSION_MAX_ALLOWED &gt;= 1070
 #  include &lt;pthread_spis.h&gt;
+#  endif
 #endif
 
 #include "mozilla/PlatformMutex.h"
@@ -65,7 +68,7 @@
   TRY_CALL_PTHREADS(pthread_mutexattr_settype(&amp;attr, MUTEX_KIND),
                     "mozilla::detail::MutexImpl::MutexImpl: "
                     "pthread_mutexattr_settype failed");
-#  elif defined(POLICY_KIND)
+#  elif defined(POLICY_KIND) &amp;&amp; __MAC_OS_X_VERSION_MAX_ALLOWED &gt;= 101400
   if (__builtin_available(macOS 10.14, *)) {
     TRY_CALL_PTHREADS(pthread_mutexattr_setpolicy_np(&amp;attr, POLICY_KIND),
                       "mozilla::detail::MutexImpl::MutexImpl: "
</pre></body></html>