base: Fix OpenWrt build with use_allocator_shim=false

This commit is contained in:
klzgrad 2022-03-03 02:09:27 +08:00
parent fec1834dfc
commit ef58cd0a89

View File

@ -18,6 +18,13 @@
#include "base/threading/thread_restrictions.h"
#include "build/build_config.h"
#if !BUILDFLAG(USE_ALLOCATOR_SHIM) && defined(LIBC_GLIBC)
extern "C" {
void* __libc_malloc(size_t size);
void __libc_free(void* ptr);
} // extern "C"
#endif
namespace base {
namespace {