forked from pool/nodejs-electron
20 lines
616 B
Diff
20 lines
616 B
Diff
|
--- src/base/synchronization/lock_impl_posix.cc.orig 2025-08-15 17:32:21.581406552 +0200
|
||
|
+++ src/base/synchronization/lock_impl_posix.cc 2025-08-15 21:57:54.242385089 +0200
|
||
|
@@ -20,6 +20,8 @@
|
||
|
#include "base/system/sys_info.h"
|
||
|
#include "build/build_config.h"
|
||
|
|
||
|
+
|
||
|
+#if BUILDFLAG(IS_ANDROID)
|
||
|
// On Android, `pthread_mutexattr_setprotocol()` is only defined in bionic
|
||
|
// starting with API level 28. Make it a weak import, so that we can compile.
|
||
|
extern "C" {
|
||
|
@@ -27,6 +29,7 @@ int __attribute__((weak)) pthread_mutexa
|
||
|
pthread_mutexattr_t* _Nonnull __attr,
|
||
|
int __protocol);
|
||
|
}
|
||
|
+#endif
|
||
|
|
||
|
namespace base {
|
||
|
|