summaryrefslogtreecommitdiff
path: root/libraries/libhoard/gnuwrapper.cpp.patch
diff options
context:
space:
mode:
authorHeinz Wiesinger <pprkut@liwjatan.at>2012-12-16 17:42:56 -0500
committerdsomero <xgizzmo@slackbuilds.org>2012-12-23 09:16:23 -0500
commitd98d8dbd531e84c6fd671d854c5cc44be4b6b427 (patch)
tree9ce57cafa070397dd2466b3deec82a676505ea68 /libraries/libhoard/gnuwrapper.cpp.patch
parentb0f228b5fb56406c76945faa0aae8f115d37ad77 (diff)
downloadslackbuilds-d98d8dbd531e84c6fd671d854c5cc44be4b6b427.tar.gz
libraries/libhoard: Added (A memory allocator)
Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'libraries/libhoard/gnuwrapper.cpp.patch')
-rw-r--r--libraries/libhoard/gnuwrapper.cpp.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/libraries/libhoard/gnuwrapper.cpp.patch b/libraries/libhoard/gnuwrapper.cpp.patch
new file mode 100644
index 0000000000..f5b733805c
--- /dev/null
+++ b/libraries/libhoard/gnuwrapper.cpp.patch
@@ -0,0 +1,25 @@
+From 96378f7975ffae9d8b789daf14daf4bdc937195a Mon Sep 17 00:00:00 2001
+From: "William J. Bowman" <wjb@williamjbowman.com>
+Date: Thu, 26 Jul 2012 12:37:55 -0400
+Subject: [PATCH] Edit to fix declaration mismatch.
+
+---
+ heaplayers/wrappers/gnuwrapper.cpp | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/heaplayers/wrappers/gnuwrapper.cpp b/heaplayers/wrappers/gnuwrapper.cpp
+index f1c4aee..1fff480 100644
+--- a/heaplayers/wrappers/gnuwrapper.cpp
++++ b/heaplayers/wrappers/gnuwrapper.cpp
+@@ -65,7 +65,7 @@ extern "C" {
+ static void * (*old_realloc_hook)(void *ptr, size_t size, const void *caller);
+ static void * (*old_memalign_hook)(size_t alignment, size_t size, const void *caller);
+
+- void (* __malloc_initialize_hook) (void) = my_init_hook;
++ void (* volatile __malloc_initialize_hook) (void) = my_init_hook;
+
+ static void my_init_hook (void) {
+ // Store the old hooks.
+--
+1.7.11.3
+