12 lines
586 B
Diff
12 lines
586 B
Diff
--- a/base/allocator/partition_allocator/src/partition_alloc/partition_root.cc
|
|
+++ b/base/allocator/partition_allocator/src/partition_alloc/partition_root.cc
|
|
@@ -239,7 +239,7 @@
|
|
if (!g_global_init_called.compare_exchange_strong(expected, true))
|
|
return;
|
|
|
|
-#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)
|
|
+#if (BUILDFLAG(IS_LINUX) && defined(__GLIBC__)) || BUILDFLAG(IS_CHROMEOS)
|
|
// When fork() is called, only the current thread continues to execute in the
|
|
// child process. If the lock is held, but *not* by this thread when fork() is
|
|
// called, we have a deadlock.
|