xref: /aosp_15_r20/external/libchrome/libchrome_tools/patch/allocator_shim.patch (revision 635a864187cb8b6c713ff48b7e790a6b21769273)
1# Use allocator_shim_override_linker_wrapped_symbols.h for ANDROID.
2
3--- a/base/allocator/allocator_shim.cc
4+++ b/base/allocator/allocator_shim.cc
5@@ -285,7 +285,7 @@ ALWAYS_INLINE void ShimFreeDefiniteSize(void* ptr, size_t size, void* context) {
6 #include "base/allocator/allocator_shim_override_cpp_symbols.h"
7 #endif
8
9-#if defined(OS_ANDROID)
10+#if defined(OS_ANDROID) || defined(ANDROID)
11 // Android does not support symbol interposition. The way malloc symbols are
12 // intercepted on Android is by using link-time -wrap flags.
13 #include "base/allocator/allocator_shim_override_linker_wrapped_symbols.h"
14