libdislocator android build fix. (#327)

Fix function signature for bionic libc
This commit is contained in:
David CARLIER
2020-04-21 09:17:11 +01:00
committed by Dominik Maier
parent 0aef3b4040
commit ce9c6df456

View File

@ -464,7 +464,11 @@ void *reallocarray(void *ptr, size_t elem_len, size_t elem_cnt) {
}
#if !defined(__ANDROID__)
size_t malloc_usable_size(void *ptr) {
#else
size_t malloc_usable_size(const void *ptr) {
#endif
return ptr ? PTR_L(ptr) : 0;