summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDon Sanders <don.sanders@nokia.com>2011-06-03 16:15:18 +0300
committerDon Sanders <don.sanders@nokia.com>2011-06-03 16:15:18 +0300
commitc147800d315d5c04e77eb802b9f13600b9b93140 (patch)
treef9ca56c3eff1492e11db49a21c545f186037845b
parente321743b5213e07f59c657d40717d2576c89ff62 (diff)
Compile fix for glibc 2.14
-rw-r--r--benchmarks/tst_messageserver/testmalloc.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/benchmarks/tst_messageserver/testmalloc.cpp b/benchmarks/tst_messageserver/testmalloc.cpp
index c270acd2..55fd2db5 100644
--- a/benchmarks/tst_messageserver/testmalloc.cpp
+++ b/benchmarks/tst_messageserver/testmalloc.cpp
@@ -163,7 +163,11 @@ void TestMalloc::resetNow()
D->now_overhead = 0;
}
-void (*__malloc_initialize_hook) (void) = TestMallocPrivate::init;
+#ifndef __MALLOC_HOOK_VOLATILE
+#define __MALLOC_HOOK_VOLATILE
+#endif
+
+void (*__MALLOC_HOOK_VOLATILE __malloc_initialize_hook) (void) = TestMallocPrivate::init;
void TestMallocPrivate::init()
{