summaryrefslogtreecommitdiff
path: root/utils/su.c
diff options
context:
space:
mode:
Diffstat (limited to 'utils/su.c')
-rw-r--r--utils/su.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/su.c b/utils/su.c
index 0be75235..de12917e 100644
--- a/utils/su.c
+++ b/utils/su.c
@@ -454,8 +454,8 @@ apply_auth_to_pgrp (struct auth *auth, pid_t pgrp)
int
check_password (const char *name, const char *password)
{
- extern char *crypt (const char *string, const char salt[2])
- __attribute__ ((weak));
+ extern char *crypt (const char *string, const char salt[2]);
+#pragma weak crypt
char *unencrypted, *encrypted;
static char *prompt = NULL;