From 541ec729cf68e61a2a3a339600401a721da1de96 Mon Sep 17 00:00:00 2001 From: Jeff Law Date: Tue, 21 Jul 2020 16:16:24 -0600 Subject: [PATCH] Fix another instance of the bogus malloc-hook check --- ucx-config.patch | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/ucx-config.patch b/ucx-config.patch index 1b9e5fc..2ee4837 100644 --- a/ucx-config.patch +++ b/ucx-config.patch @@ -24,3 +24,12 @@ index db54a6a..fa4352d 100755 void *ptr; void *myhook(size_t size, const void *caller) { rc = 0; +@@ -22252,7 +22252,7 @@ else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext + /* end confdefs.h. */ + #include +- static int rc = 1; ++ volatile static int rc = 1; + void *ptr; + void *myhook(size_t size, const void *caller) { + rc = 0;