]> git.ipfire.org Git - thirdparty/shadow.git/commitdiff
Assume <netdb.h> exists
authorAlejandro Colomar <alx@kernel.org>
Fri, 2 Dec 2022 21:24:56 +0000 (22:24 +0100)
committerSerge Hallyn <serge@hallyn.com>
Thu, 15 Dec 2022 22:22:05 +0000 (16:22 -0600)
It is required by POSIX.1-2001.

Cc: Christian Göttsche <cgzones@googlemail.com>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
configure.ac
src/login_nopam.c

index b6141bed9846caf66547f3ade481777f2d4a640d..ae43b9b15eb07fb3f7f0cdcd9e49b4742b50d1f5 100644 (file)
@@ -39,7 +39,7 @@ dnl Checks for header files.
 AC_CHECK_HEADERS(crypt.h 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 netdb.h acl/libacl.h \
+       gshadow.h lastlog.h rpc/key_prot.h acl/libacl.h \
        attr/libattr.h attr/error_context.h)
 
 dnl shadow now uses the libc's shadow implementation
index df6ba882d48e2a1d41eeb7d306c6f0db8ef36808..0ebe3bfc255f48d48d1fa3ec985927c319426254 100644 (file)
@@ -42,9 +42,7 @@
 #include <stdio.h>
 #include <syslog.h>
 #include <ctype.h>
-#ifdef HAVE_NETDB_H
 #include <netdb.h>
-#endif
 #include <grp.h>
 #ifdef PRIMARY_GROUP_MATCH
 #include <pwd.h>