From 4badb00e44b3648bb586ea66c6783f712b49ea26 Mon Sep 17 00:00:00 2001 From: "Dmitry V. Levin" Date: Sun, 15 Dec 2019 17:50:27 +0000 Subject: pam_pwhistory: fix build when -lxcrypt is not available When xcrypt.h is available but -lxcrypt is not, pam_pwhistory fails to build with the following diagnostics: modules/pam_pwhistory/opasswd.c:111: undefined reference to `xcrypt_r' Fix this by using the same check for xcrypt as in other modules. * modules/pam_pwhistory/opasswd.c: Replace HAVE_XCRYPT_H with HAVE_LIBXCRYPT. --- modules/pam_pwhistory/opasswd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/pam_pwhistory/opasswd.c b/modules/pam_pwhistory/opasswd.c index 813f579c..77142f2c 100644 --- a/modules/pam_pwhistory/opasswd.c +++ b/modules/pam_pwhistory/opasswd.c @@ -49,7 +49,7 @@ #include #include -#if defined (HAVE_XCRYPT_H) +#if defined HAVE_LIBXCRYPT #include #elif defined (HAVE_CRYPT_H) #include -- cgit v1.2.3