libreplace: Fix the build on Solaris
[sfrench/samba-autobuild/.git] / nsswitch / pam_winbind.h
index 0d9529e726a970660258d8c86cc71b37fa03057f..13542b2968f002dba0b99139563a020969dce895 100644 (file)
@@ -55,6 +55,7 @@
 #include "system/time.h"
 #include <talloc.h>
 #include "libwbclient/wbclient.h"
+#include "lib/util/tiniparser.h"
 
 #define MODULE_NAME "pam_winbind"
 #define PAM_SM_AUTH
@@ -66,8 +67,6 @@
 #define PAM_WINBIND_CONFIG_FILE "/etc/security/pam_winbind.conf"
 #endif
 
-#include <iniparser.h>
-
 #ifdef HAVE_LIBINTL_H
 #include <libintl.h>
 #endif
@@ -93,7 +92,7 @@
 #define PAM_AUTHTOK_RECOVER_ERR PAM_AUTHTOK_RECOVERY_ERR
 #endif
 
-#endif /* defined(SUNOS5) || defined(SUNOS4) || defined(HPUX) || defined(FREEBSD) || defined(AIX) */
+#endif /* (!)LINUX */
 
 #if defined(HAVE_SECURITY_PAM_MODULES_H)
 #include <security/pam_modules.h>
@@ -212,7 +211,7 @@ struct pwb_context {
        int flags;
        int argc;
        const char **argv;
-       dictionary *dict;
+       struct tiniparser_dictionary *dict;
        uint32_t ctrl;
 };