2016-11-29 11:33:33 +00:00
|
|
|
$NetBSD$
|
|
|
|
|
2020-07-27 03:07:44 +00:00
|
|
|
--- base/allocator/allocator_shim_unittest.cc.orig 2020-06-25 09:31:18.000000000 +0000
|
2016-11-29 11:33:33 +00:00
|
|
|
+++ base/allocator/allocator_shim_unittest.cc
|
2020-07-27 03:07:44 +00:00
|
|
|
@@ -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);
|
|
|
|
}
|