Make sure the #includes for pam only get hit if PAM is enabled.

--HG--
extra : convert_revision : f9c35e0ebbcb2d5821d871db343ec2041cdb6ef3
This commit is contained in:
Matt Johnston 2007-02-13 10:30:02 +00:00
parent 4941c43429
commit 41fd735d4b

View File

@ -31,14 +31,14 @@
#include "dbutil.h" #include "dbutil.h"
#include "auth.h" #include "auth.h"
#ifdef ENABLE_SVR_PAM_AUTH
#if defined(HAVE_SECURITY_PAM_APPL_H) #if defined(HAVE_SECURITY_PAM_APPL_H)
#include <security/pam_appl.h> #include <security/pam_appl.h>
#elif defined (HAVE_PAM_PAM_APPL_H) #elif defined (HAVE_PAM_PAM_APPL_H)
#include <pam/pam_appl.h> #include <pam/pam_appl.h>
#endif #endif
#ifdef ENABLE_SVR_PAM_AUTH
struct UserDataS { struct UserDataS {
char* user; char* user;
char* passwd; char* passwd;