From 859cec02509ae0d3e2f34051d0f9d7366b6ca62f Mon Sep 17 00:00:00 2001 From: Damien Miller Date: Mon, 22 Nov 1999 14:27:24 +1100 Subject: - Added autoconf test and macro to deal with old PAM libraries pam_strerror definition (one arg vs two). --- acconfig.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'acconfig.h') diff --git a/acconfig.h b/acconfig.h index db7fd18b1..6459c6371 100644 --- a/acconfig.h +++ b/acconfig.h @@ -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 -- cgit v1.2.3