From 2146ffd764499d67e3f0576a2e78a1575cd52d9c Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Mon, 4 Apr 2011 16:28:31 +0200 Subject: talloc: include valgrind headers if available metze Signed-off-By: Andrew Tridgell --- lib/talloc/talloc.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'lib') diff --git a/lib/talloc/talloc.c b/lib/talloc/talloc.c index b640159c195..6f952dcdffb 100644 --- a/lib/talloc/talloc.c +++ b/lib/talloc/talloc.c @@ -45,6 +45,15 @@ #endif #endif +/* Special macros that are no-ops except when run under Valgrind on + * x86. They've moved a little bit from valgrind 1.0.4 to 1.9.4 */ +#ifdef HAVE_VALGRIND_MEMCHECK_H + /* memcheck.h includes valgrind.h */ +#include +#elif defined(HAVE_VALGRIND_H) +#include +#endif + /* use this to force every realloc to change the pointer, to stress test code that might not cope */ #define ALWAYS_REALLOC 0 -- cgit v1.2.1