commit - 3dd91923e442cef439744636f6abd80cde85792f
commit + 76f40bdb988440a73431eb14a27f30aeaa18ebe5
blob - 0da178dd5cba72ce87d433f3155e115ad423049b
blob + ba5e7e6a9b8917117d7511cbf44e79c37aabe86a
--- contrib/MacOSX/config.h
+++ contrib/MacOSX/config.h
#define HAVE_PAM_AUTHENTICATE 1
/* Define to 1 if you have the <pam/pam_appl.h> header file. */
#define HAVE_PAM_PAM_APPL_H 1
+/* Mac OS X <10.6 doesn't have pam_fail_delay() */
+#define NO_PAM_FAIL_DELAY 1
#endif
/* -eof- */
blob - e6d25bc5c1d438481cfd1c024691b69141e2f92d
blob + 0d4f27f066c91dae8da42e21ec0f3136ce03af0a
--- src/ngircd/pam.c
+++ src/ngircd/pam.c
pam_set_item(pam, PAM_RUSER, Client_User(Client));
pam_set_item(pam, PAM_RHOST, Client_Hostname(Client));
-#ifdef HAVE_PAM_FAIL_DELAY
+#if defined(HAVE_PAM_FAIL_DELAY) && !defined(NO_PAM_FAIL_DELAY)
pam_fail_delay(pam, 0);
#endif