scudo: Fix the build of wrappers_c_test.cpp on Android.

The Android headers don't provide a declaration of valloc or pvalloc, so we
need to declare them ourselves.

Differential Revision: https://reviews.llvm.org/D71077
This commit is contained in:
Peter Collingbourne 2019-11-19 15:22:09 -08:00
parent bfa3d260b8
commit 0cfe0a7bb0
1 changed files with 2 additions and 0 deletions

View File

@ -20,6 +20,8 @@ void malloc_disable(void);
int malloc_iterate(uintptr_t base, size_t size,
void (*callback)(uintptr_t base, size_t size, void *arg),
void *arg);
void *valloc(size_t size);
void *pvalloc(size_t size);
}
// Note that every C allocation function in the test binary will be fulfilled