$OpenBSD: patch-base_trace_event_malloc_dump_provider_cc,v 1.1 2016/10/27 18:30:40 robert Exp $
--- base/trace_event/malloc_dump_provider.cc.orig.port	Wed Oct 19 13:24:08 2016
+++ base/trace_event/malloc_dump_provider.cc	Wed Oct 19 13:25:19 2016
@@ -19,6 +19,8 @@
 
 #if defined(OS_MACOSX)
 #include <malloc/malloc.h>
+#elif defined(OS_BSD)
+#include <stdlib.h>
 #else
 #include <malloc.h>
 #endif
@@ -224,6 +226,9 @@ bool MallocDumpProvider::OnMemoryDump(const MemoryDump
   resident_size = all_heap_info.committed_size;
   allocated_objects_size = all_heap_info.allocated_size;
   allocated_objects_count = all_heap_info.block_count;
+#elif defined(OS_BSD)
+  total_virtual_size = 0;
+  allocated_objects_size = 0;
 #else
   struct mallinfo info = mallinfo();
   DCHECK_GE(info.arena + info.hblkhd, info.uordblks);
