1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-04 17:47:26 +03:00

talloc: include valgrind headers if available

metze

Signed-off-By: Andrew Tridgell <tridge@samba.org>
This commit is contained in:
Stefan Metzmacher 2011-04-04 16:28:31 +02:00
parent 73cc85ac90
commit 2146ffd764

View File

@ -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 <valgrind/memcheck.h>
#elif defined(HAVE_VALGRIND_H)
#include <valgrind.h>
#endif
/* use this to force every realloc to change the pointer, to stress test
code that might not cope */
#define ALWAYS_REALLOC 0