login: fixes for PAM build
authorvda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277>
Wed, 22 Aug 2007 18:14:44 +0000 (18:14 +0000)
committervda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277>
Wed, 22 Aug 2007 18:14:44 +0000 (18:14 +0000)
git-svn-id: svn://busybox.net/trunk/busybox@19659 69ca8d6d-28ef-0310-b511-8ec308f3f277

loginutils/login.c

index b633a7f..3b4cf2a 100644 (file)
 #endif
 
 #if ENABLE_PAM
-#include <pam/pam_appl.h>
-#include <pam/pam_misc.h>
+/* PAM may include <locale.h>. We may need to undefine bbox's stub define: */
+#undef setlocale
+/* For some obscure reason, PAM is not in pam/xxx, but in security/xxx.
+ * Apparently they like to confuse people. */
+#include <security/pam_appl.h>
+#include <security/pam_misc.h>
 static const struct pam_conv conv = {
        misc_conv,
        NULL