summaryrefslogtreecommitdiff
path: root/include/my_valgrind.h
diff options
context:
space:
mode:
authorSergei Golubchik <sergii@pisem.net>2012-02-23 15:31:24 +0100
committerSergei Golubchik <sergii@pisem.net>2012-02-23 15:31:24 +0100
commitdb39910f080534159ce8c7d55fa458365de7c3f3 (patch)
treea0c872edccc12d60bad587b65d5e8eaf374e5060 /include/my_valgrind.h
parent925942e7af49eebc5ffeff705bb2167eb86a9dcb (diff)
downloadmariadb-git-db39910f080534159ce8c7d55fa458365de7c3f3.tar.gz
disable safemalloc for valgrind builds.
always try to use valgrind headers in debug builds. define HAVE_valgrind for --with-valgrind fix valgrind check in my_valgrind.h
Diffstat (limited to 'include/my_valgrind.h')
-rw-r--r--include/my_valgrind.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/my_valgrind.h b/include/my_valgrind.h
index f82dd35b369..5af3a14cf10 100644
--- a/include/my_valgrind.h
+++ b/include/my_valgrind.h
@@ -23,7 +23,7 @@
#define IF_VALGRIND(A,B) B
#endif
-#if defined(HAVE_VALGRIND) && defined(HAVE_VALGRIND_MEMCHECK_H)
+#if defined(HAVE_VALGRIND)
# include <valgrind/memcheck.h>
# define MEM_UNDEFINED(a,len) VALGRIND_MAKE_MEM_UNDEFINED(a,len)
# define MEM_NOACCESS(a,len) VALGRIND_MAKE_MEM_NOACCESS(a,len)