1From c0756cc5380474c8f71bf9c2097619bc6744907c Mon Sep 17 00:00:00 2001 2From: Khem Raj <raj.khem@gmail.com> 3Date: Wed, 13 Feb 2019 09:51:14 -0800 4Subject: [PATCH] blink: Fix build with musl 5 6check for linux OS and not glibc only here since 7other libcs e.g. musl are also options on linux 8 9Upstream-Status: Pending 10Signed-off-by: Khem Raj <raj.khem@gmail.com> 11 12--- 13 third_party/blink/renderer/platform/wtf/stack_util.cc | 4 ++-- 14 1 file changed, 2 insertions(+), 2 deletions(-) 15 16diff --git a/third_party/blink/renderer/platform/wtf/stack_util.cc b/third_party/blink/renderer/platform/wtf/stack_util.cc 17index c46b195147..e229a69c30 100644 18--- a/third_party/blink/renderer/platform/wtf/stack_util.cc 19+++ b/third_party/blink/renderer/platform/wtf/stack_util.cc 20@@ -29,7 +29,7 @@ size_t GetUnderestimatedStackSize() { 21 // FIXME: On Mac OSX and Linux, this method cannot estimate stack size 22 // correctly for the main thread. 23 24-#elif defined(__GLIBC__) || BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_FREEBSD) || \ 25+#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_FREEBSD) || \ 26 BUILDFLAG(IS_FUCHSIA) 27 // pthread_getattr_np() can fail if the thread is not invoked by 28 // pthread_create() (e.g., the main thread of blink_unittests). 29@@ -97,7 +97,7 @@ size_t GetUnderestimatedStackSize() { 30 } 31 32 void* GetStackStart() { 33-#if defined(__GLIBC__) || BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_FREEBSD) || \ 34+#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_FREEBSD) || \ 35 BUILDFLAG(IS_FUCHSIA) 36 pthread_attr_t attr; 37 int error; 38