diff options
author | Arthur de Jong <arthur@arthurdejong.org> | 2009-10-05 21:31:25 +0200 |
---|---|---|
committer | Arthur de Jong <arthur@arthurdejong.org> | 2009-10-05 21:31:25 +0200 |
commit | f974e2337977119ad9d5781a0fe88579f73215b0 (patch) | |
tree | f9b4d1b0dc76d34af4a60b3cc3e49d89402e04f6 /pam/pam.c | |
parent | bd216388f655dd170d71c5413052412cd96b810f (diff) |
some compatibility improvements
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@998 ef36b2f9-881f-0410-afb5-c4e39611909c
Diffstat (limited to 'pam/pam.c')
-rw-r--r-- | pam/pam.c | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -38,9 +38,12 @@ #define PAM_SM_SESSION #define PAM_SM_PASSWORD +#ifdef HAVE_SECURITY_PAM_APPL_H +#include <security/pam_appl.h> +#endif /* HAVE_SECURITY_PAM_APPL_H */ #ifndef HAVE_PAM_PAM_MODULES_H #include <security/pam_modules.h> -#else +#else /* not HAVE_PAM_PAM_MODULES_H */ #include <pam/pam_modules.h> #endif @@ -53,6 +56,11 @@ #define PLD_CTX "PAM_LDAPD_CTX" +/* some systems don't have LOG_AUTHPRIV */ +#ifndef LOG_AUTHPRIV +#define LOG_AUTHPRIV LOG_AUTH +#endif /* not LOG_AUTHPRIV */ + /* this struct represents that context that the PAM module keeps between calls */ typedef struct pld_ctx { |