From: Alejandro Colomar Date: Tue, 12 Nov 2024 13:32:33 +0000 (+0100) Subject: configure.ac, lib/: Use __has_include() instead of HAVE_CRYPT_H X-Git-Tag: 4.17.3~23 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=87ba6c317eca60acd0eaed2b9f02803b600ed22b;p=thirdparty%2Fshadow.git configure.ac, lib/: Use __has_include() instead of HAVE_CRYPT_H Signed-off-by: Alejandro Colomar --- 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