From 9efbc1f647cccf1e33b17d22c67537577e0ce7a0 Mon Sep 17 00:00:00 2001 From: Arthur de Jong Date: Sun, 11 Oct 2009 16:16:14 +0000 Subject: 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 --- configure.ac | 1 + pam/pam.c | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) 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 diff --git a/pam/pam.c b/pam/pam.c index b0ddac8..09ec6ac 100644 --- a/pam/pam.c +++ b/pam/pam.c @@ -43,10 +43,12 @@ #endif /* HAVE_SECURITY_PAM_APPL_H */ #ifndef HAVE_PAM_PAM_MODULES_H #include +#ifdef HAVE_SECURITY_PAM_EXT_H #include +#endif /* HAVE_SECURITY_PAM_EXT_H */ #else /* not HAVE_PAM_PAM_MODULES_H */ #include -#endif +#endif /* not HAVE_PAM_PAM_MODULES_H */ #define IGNORE_UNKNOWN 1 #define IGNORE_UNAVAIL 2 -- cgit v1.2.3