summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorMartin Pool <mbp@samba.org>2003-03-10 00:45:28 +0000
committerMartin Pool <mbp@samba.org>2003-03-10 00:45:28 +0000
commitbecf7a099710ba50f4611d0e16151337236b8a93 (patch)
treed48fb03064311250b2bbc8b1ed3e26d25eb50c7e /source3
parentcb1de38cfd09bae002b8adf104d92569a9b695bb (diff)
downloadsamba-becf7a099710ba50f4611d0e16151337236b8a93.tar.gz
samba-becf7a099710ba50f4611d0e16151337236b8a93.tar.bz2
samba-becf7a099710ba50f4611d0e16151337236b8a93.zip
Include valgrind.h if present on the system.
(This used to be commit 65ba78c6bd4c5ab7ec9bf4d15e4410482e82588d)
Diffstat (limited to 'source3')
-rw-r--r--source3/include/includes.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/source3/include/includes.h b/source3/include/includes.h
index b9ba4b84d5..297f38ae97 100644
--- a/source3/include/includes.h
+++ b/source3/include/includes.h
@@ -433,6 +433,11 @@
#include <com_err.h>
#endif
+#if HAVE_VALGRIND_H
+/* Special macros that are no-ops except when run under Valgrind on x86. */
+#include <valgrind.h>
+#endif
+
/* we support ADS if we want it and have krb5 and ldap libs */
#if defined(WITH_ADS) && defined(HAVE_KRB5) && defined(HAVE_LDAP)
#define HAVE_ADS