summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter Collingbourne <peter@pcc.me.uk>2019-11-19 15:22:09 -0800
committerPeter Collingbourne <peter@pcc.me.uk>2019-12-05 11:15:00 -0800
commit0cfe0a7bb0e10a96c3c98891961d37160a931d20 (patch)
tree03f262e77fda646d5c5b4af17091e258576c8a57
parentbfa3d260b8238562b39f6a405e7ac366060401bc (diff)
downloadbcm5719-llvm-0cfe0a7bb0e10a96c3c98891961d37160a931d20.tar.gz
bcm5719-llvm-0cfe0a7bb0e10a96c3c98891961d37160a931d20.zip
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
-rw-r--r--compiler-rt/lib/scudo/standalone/tests/wrappers_c_test.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler-rt/lib/scudo/standalone/tests/wrappers_c_test.cpp b/compiler-rt/lib/scudo/standalone/tests/wrappers_c_test.cpp
index 99e7aa2fa21..03f64c87183 100644
--- a/compiler-rt/lib/scudo/standalone/tests/wrappers_c_test.cpp
+++ b/compiler-rt/lib/scudo/standalone/tests/wrappers_c_test.cpp
@@ -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
OpenPOWER on IntegriCloud