summaryrefslogtreecommitdiff
path: root/_pam_aconf.h.in
diff options
context:
space:
mode:
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 */