14 lines
432 B
C++
14 lines
432 B
C++
$NetBSD$
|
|
|
|
--- base/allocator/allocator_shim_unittest.cc.orig 2020-06-25 09:31:18.000000000 +0000
|
|
+++ base/allocator/allocator_shim_unittest.cc
|
|
@@ -557,7 +557,7 @@ static size_t GetAllocatedSize(void* ptr
|
|
static size_t GetAllocatedSize(void* ptr) {
|
|
return malloc_size(ptr);
|
|
}
|
|
-#elif defined(OS_LINUX)
|
|
+#elif defined(OS_LINUX) || defined(OS_BSD)
|
|
static size_t GetAllocatedSize(void* ptr) {
|
|
return malloc_usable_size(ptr);
|
|
}
|