diff options
author | Arthur de Jong <arthur@arthurdejong.org> | 2009-10-11 18:16:14 +0200 |
---|---|---|
committer | Arthur de Jong <arthur@arthurdejong.org> | 2009-10-11 18:16:14 +0200 |
commit | 9efbc1f647cccf1e33b17d22c67537577e0ce7a0 (patch) | |
tree | 7f5ff7e8ef1c63e61746be48f99f5a637c60b551 | |
parent | dbc80a657d3aecb1dc052749ddf6de843ca2ba02 (diff) |
only include security/pam_ext.h for systems that have it
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1004 ef36b2f9-881f-0410-afb5-c4e39611909c
-rw-r--r-- | configure.ac | 1 | ||||
-rw-r--r-- | pam/pam.c | 4 |
2 files changed, 4 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index befcc0d..ca8105e 100644 --- a/configure.ac +++ b/configure.ac @@ -215,6 +215,7 @@ then #endif ]) AC_CHECK_HEADERS(pam/pam_modules.h) + AC_CHECK_HEADERS(security/pam_ext.h) fi # LDAP-specific headers @@ -43,10 +43,12 @@ #endif /* HAVE_SECURITY_PAM_APPL_H */ #ifndef HAVE_PAM_PAM_MODULES_H #include <security/pam_modules.h> +#ifdef HAVE_SECURITY_PAM_EXT_H #include <security/pam_ext.h> +#endif /* HAVE_SECURITY_PAM_EXT_H */ #else /* not HAVE_PAM_PAM_MODULES_H */ #include <pam/pam_modules.h> -#endif +#endif /* not HAVE_PAM_PAM_MODULES_H */ #define IGNORE_UNKNOWN 1 #define IGNORE_UNAVAIL 2 |