@@ -46,6 +46,13 @@ void usage()
generic_server_usage();
}
+#ifdef HAVE_LIBTCMALLOC
+/* Adjust the return type. */
+static bool isHeapProfilerRunning(void) {
+ return IsHeapProfilerRunning();
+}
+#endif
+
int main(int argc, const char **argv)
{
vector<const char*> args;
@@ -58,7 +65,7 @@ int main(int argc, const char **argv)
common_set_defaults(true);
#ifdef HAVE_LIBTCMALLOC
g_conf.profiler_start = HeapProfilerStart;
- g_conf.profiler_running = IsHeapProfilerRunning;
+ g_conf.profiler_running = isHeapProfilerRunning;
g_conf.profiler_stop = HeapProfilerStop;
g_conf.profiler_dump = HeapProfilerDump;
g_conf.tcmalloc_have = true;
@@ -42,6 +42,12 @@ void usage()
generic_server_usage();
}
+#ifdef HAVE_LIBTCMALLOC
+/* Adjust the return type. */
+static bool isHeapProfilerRunning(void) {
+ return IsHeapProfilerRunning();
+}
+#endif
int main(int argc, const char **argv)
{
@@ -62,7 +68,7 @@ int main(int argc, const char **argv)
common_set_defaults(true);
#ifdef HAVE_LIBTCMALLOC
g_conf.profiler_start = HeapProfilerStart;
- g_conf.profiler_running = IsHeapProfilerRunning;
+ g_conf.profiler_running = isHeapProfilerRunning;
g_conf.profiler_stop = HeapProfilerStop;
g_conf.profiler_dump = HeapProfilerDump;
g_conf.tcmalloc_have = true;