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
@@ -54,6 +54,10 @@ /* Define if you want to allow MD5 passwords */ #undef HAVE_MD5_PASSWORDS +/* Define if you have an old version of PAM which takes only one argument */ +/* to pam_strerror */ +#undef HAVE_OLD_PAM + /* Data types */ #undef HAVE_QUAD_T #undef HAVE_INTXX_T @@ -195,3 +199,9 @@ enum } while (0) #endif + +#ifdef HAVE_OLD_PAM +# define PAM_STRERROR(a,b) pam_strerror((b)) +#else +# define PAM_STRERROR(a,b) pam_strerror((a),(b)) +#endif |