pkgsrc-wip/firefox69-2019Q4/patches/patch-ipc_chromium_src_base...

16 lines
775 B
C++

$NetBSD: patch-ipc_chromium_src_base_lock__impl__posix.cc,v 1.2 2019/03/19 16:11:28 ryoon Exp $
- Fix build on NetBSD 7.1 (which doesn't have PTHREAD_PRIO_INHERIT)
--- ipc/chromium/src/base/lock_impl_posix.cc.orig 2019-03-07 16:53:35.000000000 +0000
+++ ipc/chromium/src/base/lock_impl_posix.cc
@@ -22,7 +22,7 @@ namespace internal {
// Lock::PriorityInheritanceAvailable still must be checked as the code may
// compile but the underlying platform still may not correctly support priority
// inheritance locks.
-#if defined(OS_NACL) || defined(OS_ANDROID)
+#if defined(OS_NACL) || defined(OS_ANDROID) || (defined(__NetBSD__) && !defined(PTHREAD_PRIO_INHERIT))
# define PRIORITY_INHERITANCE_LOCKS_POSSIBLE() 0
#else
# define PRIORITY_INHERITANCE_LOCKS_POSSIBLE() 1