summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--_pam_aconf.h.in4
-rw-r--r--configure.in1
2 files changed, 5 insertions, 0 deletions
diff --git a/_pam_aconf.h.in b/_pam_aconf.h.in
index 35dfd197..baa97170 100644
--- a/_pam_aconf.h.in
+++ b/_pam_aconf.h.in
@@ -62,6 +62,10 @@
#undef HAVE_STRTOL
#undef HAVE_UNAME
+/* Define if reentrant declarations of standard nss functions are available */
+#undef HAVE_GETPWNAM_R
+#undef HAVE_GETGRNAM_R
+
/* ugly hack to partially support old pam_strerror syntax */
#undef UGLY_HACK_FOR_PRIOR_BEHAVIOR_SUPPORT
diff --git a/configure.in b/configure.in
index 83197356..407d08e0 100644
--- a/configure.in
+++ b/configure.in
@@ -380,6 +380,7 @@ AC_PROG_GCC_TRADITIONAL
AC_FUNC_MEMCMP
AC_FUNC_VPRINTF
AC_CHECK_FUNCS(gethostname gettimeofday mkdir select strcspn strdup strerror strspn strstr strtol uname)
+AC_CHECK_FUNCS(getpwnam_r getgrnam_r)
dnl Checks for programs/utilities
AC_CHECK_PROG(HAVE_SGML2TXT, sgml2txt, yes, no)