diff options
author | Steve Langasek <vorlon@debian.org> | 2001-09-12 19:15:10 +0000 |
---|---|---|
committer | Steve Langasek <vorlon@debian.org> | 2001-09-12 19:15:10 +0000 |
commit | cdf8300ff2ddee6a71e3318a5083fa4209e747a9 (patch) | |
tree | ff9920bd3fe0fedcd9a985f3e3169269bd4de273 | |
parent | 1c3bff246cd5c22565ba6fbec1658852c9f99224 (diff) | |
download | pam-cdf8300ff2ddee6a71e3318a5083fa4209e747a9.tar.gz pam-cdf8300ff2ddee6a71e3318a5083fa4209e747a9.tar.bz2 pam-cdf8300ff2ddee6a71e3318a5083fa4209e747a9.zip |
Relevant BUGIDs: 440107
Purpose of commit: reentrant modules
Commit summary:
---------------
Lay the autoconf groundwork for making all PAM modules reentrant on systems
that include the POSIX getxx_r() functions.
-rw-r--r-- | _pam_aconf.h.in | 4 | ||||
-rw-r--r-- | configure.in | 1 |
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) |