Index: base/allocator/allocator_shim_unittest.cc |
diff --git a/base/allocator/allocator_shim_unittest.cc b/base/allocator/allocator_shim_unittest.cc |
index e526bb88e7ec5f31c24cf180aaa68fa0a83c2294..4d14169a755efac4605f3389832f993b982cba90 100644 |
--- a/base/allocator/allocator_shim_unittest.cc |
+++ b/base/allocator/allocator_shim_unittest.cc |
@@ -20,6 +20,15 @@ |
#include "testing/gmock/include/gmock/gmock.h" |
#include "testing/gtest/include/gtest/gtest.h" |
+// Some new Android NDKs (64 bit) does not expose (p)valloc anymore. These |
+// functions are implemented at the shim-layer level. |
+#if defined(OS_ANDROID) |
+extern "C" { |
+void *valloc(size_t size); |
+void *pvalloc(size_t size); |
+} |
+#endif |
+ |
namespace base { |
namespace allocator { |
namespace { |