diff options
author | Damien Miller <djm@mindrot.org> | 1999-11-22 14:27:24 +1100 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 1999-11-22 14:27:24 +1100 |
commit | 859cec02509ae0d3e2f34051d0f9d7366b6ca62f (patch) | |
tree | e42b4d63f2b16bc7646fa95990ba27dad445e87a /acconfig.h | |
parent | b3ca3aa12f8248c2d9e23f15a46e0f3c97397e54 (diff) |
- Added autoconf test and macro to deal with old PAM libraries
pam_strerror definition (one arg vs two).
Diffstat (limited to 'acconfig.h')
-rw-r--r-- | acconfig.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/acconfig.h b/acconfig.h index db7fd18b1..6459c6371 100644 --- a/acconfig.h +++ b/acconfig.h | |||
@@ -54,6 +54,10 @@ | |||
54 | /* Define if you want to allow MD5 passwords */ | 54 | /* Define if you want to allow MD5 passwords */ |
55 | #undef HAVE_MD5_PASSWORDS | 55 | #undef HAVE_MD5_PASSWORDS |
56 | 56 | ||
57 | /* Define if you have an old version of PAM which takes only one argument */ | ||
58 | /* to pam_strerror */ | ||
59 | #undef HAVE_OLD_PAM | ||
60 | |||
57 | /* Data types */ | 61 | /* Data types */ |
58 | #undef HAVE_QUAD_T | 62 | #undef HAVE_QUAD_T |
59 | #undef HAVE_INTXX_T | 63 | #undef HAVE_INTXX_T |
@@ -195,3 +199,9 @@ enum | |||
195 | } while (0) | 199 | } while (0) |
196 | 200 | ||
197 | #endif | 201 | #endif |
202 | |||
203 | #ifdef HAVE_OLD_PAM | ||
204 | # define PAM_STRERROR(a,b) pam_strerror((b)) | ||
205 | #else | ||
206 | # define PAM_STRERROR(a,b) pam_strerror((a),(b)) | ||
207 | #endif | ||