summaryrefslogtreecommitdiff
path: root/modules/pam_pwhistory/opasswd.c
diff options
context:
space:
mode:
authorDmitry V. Levin <ldv@altlinux.org>2019-12-15 17:50:27 +0000
committerDmitry V. Levin <ldv@altlinux.org>2019-12-16 09:49:03 +0000
commit4badb00e44b3648bb586ea66c6783f712b49ea26 (patch)
tree98ee18f047d897d79f843c61a6b6175325aa50a4 /modules/pam_pwhistory/opasswd.c
parent03f46bbe3f22d800a1516f4c535a1bfb573068de (diff)
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.
Diffstat (limited to 'modules/pam_pwhistory/opasswd.c')
-rw-r--r--modules/pam_pwhistory/opasswd.c2
1 files changed, 1 insertions, 1 deletions
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 <syslog.h>
#include <sys/stat.h>
-#if defined (HAVE_XCRYPT_H)
+#if defined HAVE_LIBXCRYPT
#include <xcrypt.h>
#elif defined (HAVE_CRYPT_H)
#include <crypt.h>