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