s3: fix building of pam_smbpass.
authorBo Yang <boyang@samba.org>
Fri, 29 May 2009 08:10:19 +0000 (16:10 +0800)
committerBo Yang <boyang@samba.org>
Fri, 29 May 2009 08:19:17 +0000 (16:19 +0800)
Signed-off-by: Bo Yang <boyang@samba.org>
source3/pam_smbpass/support.c

index 855885a6d7c06c03e8675976b5a5496914f3d96f..98dda4e8cc25935c768128b5ccb5c375a5aa5f11 100644 (file)
 #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 {                             \