Index: third_party/tcmalloc/chromium/src/gperftools/heap-profiler.h |
diff --git a/third_party/tcmalloc/chromium/src/gperftools/heap-profiler.h b/third_party/tcmalloc/chromium/src/gperftools/heap-profiler.h |
index 49c78fe4bbac4c9f5302f3b477ada0fa4ebd299f..24131291456482d19bf0a52345a8101cc9afdf9c 100644 |
--- a/third_party/tcmalloc/chromium/src/gperftools/heap-profiler.h |
+++ b/third_party/tcmalloc/chromium/src/gperftools/heap-profiler.h |
@@ -131,6 +131,11 @@ typedef void (*AddressVisitor)(void* data, const void* ptr); |
PERFTOOLS_DLL_DECL void IterateAllocatedObjects(AddressVisitor callback, |
void* data); |
+/* Export this dummy function so that the LeakDetector is compiled in. */ |
+#if defined (ENABLE_LEAK_DETECTOR) |
+void LeakDetectorDummy(); |
+#endif |
+ |
#ifdef __cplusplus |
} // extern "C" |
#endif |