aboutsummaryrefslogtreecommitdiff
path: root/loginutils
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2007-08-22 18:14:44 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2007-08-22 18:14:44 +0000
commitc6c2345ca617f604b20750145b7158893091db60 (patch)
treed29a97d98832e074bd680c94e6c9d4d20c42eae2 /loginutils
parent5750782fca4241725a84c59e0bf781b3d141d43e (diff)
downloadbusybox-c6c2345ca617f604b20750145b7158893091db60.tar.gz
login: fixes for PAM build
Diffstat (limited to 'loginutils')
-rw-r--r--loginutils/login.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/loginutils/login.c b/loginutils/login.c
index b633a7feb..3b4cf2af8 100644
--- a/loginutils/login.c
+++ b/loginutils/login.c
@@ -15,8 +15,12 @@
#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