summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBo Yang <boyang@samba.org>2009-05-29 16:10:19 +0800
committerBo Yang <boyang@samba.org>2009-05-29 16:19:17 +0800
commitde4c13ca682671d46d9d6512f84670c88b2e7837 (patch)
treec1cc818455e92f06605202141a097f0032f5ada9
parentb3f2a3a488f868c4aa31c49bc145a8a6e81de3b5 (diff)
downloadsamba-de4c13ca682671d46d9d6512f84670c88b2e7837.tar.gz
samba-de4c13ca682671d46d9d6512f84670c88b2e7837.tar.bz2
samba-de4c13ca682671d46d9d6512f84670c88b2e7837.zip
s3: fix building of pam_smbpass.
Signed-off-by: Bo Yang <boyang@samba.org>
-rw-r--r--source3/pam_smbpass/support.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/source3/pam_smbpass/support.c b/source3/pam_smbpass/support.c
index 855885a6d7..98dda4e8cc 100644
--- a/source3/pam_smbpass/support.c
+++ b/source3/pam_smbpass/support.c
@@ -21,7 +21,21 @@
#include "support.h"
#include "../libcli/auth/libcli_auth.h"
+#if defined(HAVE_SECURITY_PAM_EXT_H)
+#include <security/pam_ext.h>
+#elif defined(HAVE_PAM_PAM_EXT_H)
+#include <pam/pam_ext.h>
+#endif
+
+#if defined(HAVE_SECURITY__PAM_MACROS_H)
+#include <security/_pam_macros.h>
+#elif defined(HAVE_PAM__PAM_MACROS_H)
+#include <pam/_pam_macros.h>
+#endif
+#ifdef HAVE_SYSLOG_H
+#include <syslog.h>
+#endif
#define _pam_overwrite(x) \
do { \