summaryrefslogtreecommitdiffstats
path: root/source3/lib/pam_errors.c
diff options
context:
space:
mode:
authorJames Peach <jpeach@samba.org>2007-05-23 20:31:28 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:22:45 -0500
commitf4ae28576376741a5402a286827a46c053db0ff7 (patch)
treeea00880459b82e677e2eb38ebc5dcc608d5e053a /source3/lib/pam_errors.c
parentb683f8137baa6d7d4ddb6db6fe4f7b2141abd071 (diff)
downloadsamba-f4ae28576376741a5402a286827a46c053db0ff7.tar.gz
samba-f4ae28576376741a5402a286827a46c053db0ff7.tar.xz
samba-f4ae28576376741a5402a286827a46c053db0ff7.zip
r23095: Support systems that have their PAM headers in /usr/include/pam.
(This used to be commit f1e8de4b576b3954d456cb64c02417908bab8da4)
Diffstat (limited to 'source3/lib/pam_errors.c')
-rw-r--r--source3/lib/pam_errors.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/lib/pam_errors.c b/source3/lib/pam_errors.c
index 9d9a377a912..42931383edd 100644
--- a/source3/lib/pam_errors.c
+++ b/source3/lib/pam_errors.c
@@ -21,7 +21,11 @@
#include "includes.h"
#ifdef WITH_PAM
+#if defined(HAVE_SECURITY_PAM_APPL_H)
#include <security/pam_appl.h>
+#elif defined(HAVE_PAM_PAM_APPL_H)
+#include <pam/pam_appl.h>
+#endif
#if defined(PAM_AUTHTOK_RECOVERY_ERR) && !defined(PAM_AUTHTOK_RECOVER_ERR)
#define PAM_AUTHTOK_RECOVER_ERR PAM_AUTHTOK_RECOVERY_ERR