mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-15 20:25:17 +03:00
24 lines
1,023 B
Diff
24 lines
1,023 B
Diff
the pthread_attr* calls in this codepath are supported by musl, so update the
|
|
guards to IS_LINUX instead of just glibc to make use of them. otherwise this
|
|
hits the #error path
|
|
--
|
|
--- a/third_party/blink/renderer/platform/wtf/stack_util.cc
|
|
+++ b/third_party/blink/renderer/platform/wtf/stack_util.cc
|
|
@@ -29,7 +29,7 @@
|
|
// FIXME: On Mac OSX and Linux, this method cannot estimate stack size
|
|
// correctly for the main thread.
|
|
|
|
-#elif defined(__GLIBC__) || BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_FREEBSD) || \
|
|
+#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_FREEBSD) || \
|
|
BUILDFLAG(IS_FUCHSIA)
|
|
// pthread_getattr_np() can fail if the thread is not invoked by
|
|
// pthread_create() (e.g., the main thread of blink_unittests).
|
|
@@ -97,7 +97,7 @@
|
|
}
|
|
|
|
void* GetStackStart() {
|
|
-#if defined(__GLIBC__) || BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_FREEBSD) || \
|
|
+#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_FREEBSD) || \
|
|
BUILDFLAG(IS_FUCHSIA)
|
|
pthread_attr_t attr;
|
|
int error;
|