On Sun, 2019-12-15 at 22:28 +0300, Dmitry V. Levin wrote:
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 <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>
--
ldv
Looks OK, please commit.
--
Tomáš Mráz
No matter how far down the wrong road you've gone, turn back.
Turkish proverb
[You'll know whether the road is wrong if you carefully listen to your
conscience.]