summaryrefslogtreecommitdiff
path: root/source3/include
diff options
context:
space:
mode:
authorMartin Pool <mbp@samba.org>2001-12-20 04:01:44 +0000
committerMartin Pool <mbp@samba.org>2001-12-20 04:01:44 +0000
commitcc0846f967f268764bff280f64d5cb47b716d796 (patch)
treed277e685bd3b8da1ecc6128176728eb3b41cafa3 /source3/include
parent6c7e9dfb293f1243d9d8d8a2ac50ef12d738198e (diff)
downloadsamba-cc0846f967f268764bff280f64d5cb47b716d796.tar.gz
samba-cc0846f967f268764bff280f64d5cb47b716d796.tar.bz2
samba-cc0846f967f268764bff280f64d5cb47b716d796.zip
Add --enable-dmalloc to link against the dmalloc malloc debugger.
It's not as strong as Insure, but it's free, reasonably efficient and works on every platform. (This used to be commit e76d27fcdb33df5212ca5b0ce53c77ed8ca58906)
Diffstat (limited to 'source3/include')
-rw-r--r--source3/include/config.h.in5
-rw-r--r--source3/include/includes.h7
2 files changed, 11 insertions, 1 deletions
diff --git a/source3/include/config.h.in b/source3/include/config.h.in
index 25c6b914b6..1c22c0b5e5 100644
--- a/source3/include/config.h.in
+++ b/source3/include/config.h.in
@@ -1,4 +1,4 @@
-/* include/config.h.in. Generated automatically from configure.in by autoheader. */
+/* include/config.h.in. Generated automatically from configure.in by autoheader 2.13. */
/* Define if on AIX 3.
System headers sometimes define this.
@@ -1082,6 +1082,9 @@
/* Define if you have the socket library (-lsocket). */
#undef HAVE_LIBSOCKET
+/* Define to turn on dmalloc debugging */
+#undef ENABLE_DMALLOC
+
/* Do we have rl_completion_matches? */
#undef HAVE_NEW_LIBREADLINE
diff --git a/source3/include/includes.h b/source3/include/includes.h
index 3b2b1db877..92ac462e1b 100644
--- a/source3/include/includes.h
+++ b/source3/include/includes.h
@@ -975,6 +975,13 @@ int vasprintf(char **ptr, const char *format, va_list ap);
#include <dlfcn.h>
#endif
+/* dmalloc -- free heap debugger (dmalloc.org). This should be near
+ * the *bottom* of include files so as not to conflict. */
+#ifdef DMALLOC
+# include <dmalloc.h>
+#endif
+
+
/* Some POSIX definitions for those without */
#ifndef S_IFDIR