summaryrefslogtreecommitdiff
path: root/_pam_aconf.h.in
diff options
context:
space:
mode:
authorAndrew G. Morgan <morgan@kernel.org>2001-11-26 03:04:46 +0000
committerAndrew G. Morgan <morgan@kernel.org>2001-11-26 03:04:46 +0000
commit6d8f508fe9bed97a12d8f2a8dd01a413d7a60560 (patch)
tree68937571edf317260b842d2e5d169c9de3abe786 /_pam_aconf.h.in
parentd0ae8d409e9e7de2c714197251c4c005fe7d7ad4 (diff)
Relevant BUGIDs: 485454
Purpose of commit: revive feature Commit summary: --------------- malloc et al. debugging was not supported by the new autoconf setup, this commit rectifies that. It also adds a couple of header file inclusions that seem to be needed with recent glibc headers.
Diffstat (limited to '_pam_aconf.h.in')
-rw-r--r--_pam_aconf.h.in13
1 files changed, 13 insertions, 0 deletions
diff --git a/_pam_aconf.h.in b/_pam_aconf.h.in
index 1b2cea75..0569554d 100644
--- a/_pam_aconf.h.in
+++ b/_pam_aconf.h.in
@@ -83,4 +83,17 @@
defined, we get it from unistd.h */
#undef HAVE_SYS_FSUID_H
+/* track all memory allocations and liberations */
+#undef MEMORY_DEBUG
+#ifdef MEMORY_DEBUG
+/*
+ * this is basically a hack - we need to include a semiarbitrary
+ * number of headers to ensure that we don't get silly prototype/macro
+ * confusion.
+ */
+# include <string.h>
+# include <stdlib.h>
+# include <security/pam_malloc.h>
+#endif /* MEMORY_DEBUG */
+
#endif /* PAM_ACONF_H */