]> git.ipfire.org Git - thirdparty/shadow.git/commitdiff
configure.ac, lib/: Use __has_include(<crypt.h>) instead of HAVE_CRYPT_H
authorAlejandro Colomar <alx@kernel.org>
Tue, 12 Nov 2024 13:32:33 +0000 (14:32 +0100)
committerSerge Hallyn <serge@hallyn.com>
Sat, 8 Feb 2025 05:43:55 +0000 (23:43 -0600)
Signed-off-by: Alejandro Colomar <alx@kernel.org>
configure.ac
lib/defines.h

index 6c19eedefdb205a249ba47fcb9b10347d8bfa75b..c82b465095ca9e1dc5edf2bc389fb463bc4792db 100644 (file)
@@ -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 \
index 5f9ed4d1c3ce94ac78de750164b89fb742310c01..89300c93c5efc191f96f33a11c12c63b94af7706 100644 (file)
@@ -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(<crypt.h>)
 # include <crypt.h>
 #endif