git.samba.org
/
gd
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ee28d38
)
If using --enable-developer and valgrind.h is present, define VALGRIND.
author
Martin Pool
<mbp@samba.org>
Tue, 11 Mar 2003 05:57:53 +0000
(
05:57
+0000)
committer
Martin Pool
<mbp@samba.org>
Tue, 11 Mar 2003 05:57:53 +0000
(
05:57
+0000)
(This used to be commit
71c8e90117f00f168416f2f35a1c25755e2d0ed4
)
source3/include/includes.h
patch
|
blob
|
history
diff --git
a/source3/include/includes.h
b/source3/include/includes.h
index 297f38ae9755ba9ec201809c0ac0652a86ead666..7e5ad0e3cdc0599d86f78381dae9d306f11e1a2e 100644
(file)
--- a/
source3/include/includes.h
+++ b/
source3/include/includes.h
@@
-438,6
+438,14
@@
#include <valgrind.h>
#endif
+/* If we have --enable-developer and the valgrind header is present,
+ * then we're OK to use it. Set a macro so this logic can be done only
+ * once. */
+#if defined(DEVELOPER) && HAVE_VALGRIND_H
+#define VALGRIND
+#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