1*4882a593SmuzhiyunFrom 7c0031bb96238fe9f38a30ae5fb4821e59fb3ebf 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] mallopt() is glibc specific API 5*4882a593Smuzhiyun 6*4882a593SmuzhiyunUpstream-Status: Pending 7*4882a593SmuzhiyunSigned-off-by: Khem Raj <raj.khem@gmail.com> 8*4882a593Smuzhiyun 9*4882a593Smuzhiyun--- 10*4882a593Smuzhiyun base/allocator/allocator_check.cc | 2 +- 11*4882a593Smuzhiyun 1 file changed, 1 insertion(+), 1 deletion(-) 12*4882a593Smuzhiyun 13*4882a593Smuzhiyundiff --git a/base/allocator/allocator_check.cc b/base/allocator/allocator_check.cc 14*4882a593Smuzhiyunindex 0ac9fa1975..b6338c8285 100644 15*4882a593Smuzhiyun--- a/base/allocator/allocator_check.cc 16*4882a593Smuzhiyun+++ b/base/allocator/allocator_check.cc 17*4882a593Smuzhiyun@@ -11,7 +11,7 @@ 18*4882a593Smuzhiyun #include "base/allocator/partition_allocator/shim/winheap_stubs_win.h" 19*4882a593Smuzhiyun #endif 20*4882a593Smuzhiyun 21*4882a593Smuzhiyun-#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) 22*4882a593Smuzhiyun+#if defined(__GLIBC__) || BUILDFLAG(IS_CHROMEOS) 23*4882a593Smuzhiyun #include <malloc.h> 24*4882a593Smuzhiyun #endif 25*4882a593Smuzhiyun 26