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..e61dd73af7f4f992ac7393f4e333a7339302e1d5 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 { |