From 87ba6c317eca60acd0eaed2b9f02803b600ed22b Mon Sep 17 00:00:00 2001 From: Alejandro Colomar Date: Tue, 12 Nov 2024 14:32:33 +0100 Subject: [PATCH] configure.ac, lib/: Use __has_include() instead of HAVE_CRYPT_H Signed-off-by: Alejandro Colomar --- configure.ac | 2 +- lib/defines.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index 6c19eedef..c82b46509 100644 --- a/configure.ac +++ b/configure.ac @@ -37,7 +37,7 @@ LT_LIB_DLLOAD dnl Checks for libraries. dnl Checks for header files. -AC_CHECK_HEADERS(crypt.h utmp.h \ +AC_CHECK_HEADERS(utmp.h \ termio.h sgtty.h sys/ioctl.h paths.h \ sys/capability.h sys/random.h \ gshadow.h lastlog.h rpc/key_prot.h acl/libacl.h \ diff --git a/lib/defines.h b/lib/defines.h index 5f9ed4d1c..89300c93c 100644 --- a/lib/defines.h +++ b/lib/defines.h @@ -41,7 +41,7 @@ * crypt(3), crypt_gensalt(3), and their * feature test macros may be defined in here. */ -#if HAVE_CRYPT_H +#if __has_include() # include #endif -- 2.47.2