diff options
author | Andrew G. Morgan <morgan@kernel.org> | 2001-11-26 03:04:46 +0000 |
---|---|---|
committer | Andrew G. Morgan <morgan@kernel.org> | 2001-11-26 03:04:46 +0000 |
commit | 6d8f508fe9bed97a12d8f2a8dd01a413d7a60560 (patch) | |
tree | 68937571edf317260b842d2e5d169c9de3abe786 /_pam_aconf.h.in | |
parent | d0ae8d409e9e7de2c714197251c4c005fe7d7ad4 (diff) | |
download | pam-6d8f508fe9bed97a12d8f2a8dd01a413d7a60560.tar.gz pam-6d8f508fe9bed97a12d8f2a8dd01a413d7a60560.tar.bz2 pam-6d8f508fe9bed97a12d8f2a8dd01a413d7a60560.zip |
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.in | 13 |
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 */ |