]> git.ipfire.org Git - thirdparty/shadow.git/commit
Remove AC_HEADER_DIRENT
authorAlejandro Colomar <alx.manpages@gmail.com>
Thu, 30 Dec 2021 13:09:29 +0000 (14:09 +0100)
committerSerge Hallyn <serge@hallyn.com>
Sat, 15 Jan 2022 14:25:53 +0000 (08:25 -0600)
commit79e28694efe68a7cac4e8e12293f8c81d53e5895
tree0eb798399b36205be48942fee20f71fb7e81f5c4
parent39eea79d8d26472b756c76470ccc67f18504153e
Remove AC_HEADER_DIRENT

POSIX.1-2001 defines 'struct dirent' in <dirent.h>.  It replaces
the old 'struct direct' found in BSDs.  All of the systems that I
checked (including FreeBSD, NetBSD, and OpenBSD), now provide
<dirent.h> with 'struct dirent', as mandated by POSIX.

Since autoconf first checks <dirent.h> and only if it's missing it
checks other header files, it's clear that it will always find
<dirent.h>, so let's simplify.

GNU autoconf documentation declares this macro as obsolescent, and
acknowledges that all current systems with directory libraries
have <dirent.h>:
<https://www.gnu.org/software/autoconf/manual/autoconf-2.70/html_node/Particular-Headers.html>

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
configure.ac
lib/defines.h