summaryrefslogtreecommitdiff
path: root/utils/login.c
diff options
context:
space:
mode:
Diffstat (limited to 'utils/login.c')
-rw-r--r--utils/login.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/utils/login.c b/utils/login.c
index 53d27ed0..e4d1f628 100644
--- a/utils/login.c
+++ b/utils/login.c
@@ -517,7 +517,9 @@ main(int argc, char *argv[])
uid_t id, int is_group)
{
extern char *crypt (const char *string, const char salt[2]);
+#ifndef HAVE_CRYPT
#pragma weak crypt
+#endif
char *prompt, *unencrypted, *encrypted;
if (!password || !*password