From 48391fb8626c8e22280fe4590d9253f8340a3f1d Mon Sep 17 00:00:00 2001 From: Alejandro Colomar Date: Fri, 2 Dec 2022 22:24:56 +0100 Subject: [PATCH] Assume exists MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It is required by POSIX.1-2001. Cc: Christian Göttsche Signed-off-by: Alejandro Colomar --- configure.ac | 2 +- src/login_nopam.c | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/configure.ac b/configure.ac index b6141bed..ae43b9b1 100644 --- a/configure.ac +++ b/configure.ac @@ -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 diff --git a/src/login_nopam.c b/src/login_nopam.c index df6ba882..0ebe3bfc 100644 --- a/src/login_nopam.c +++ b/src/login_nopam.c @@ -42,9 +42,7 @@ #include #include #include -#ifdef HAVE_NETDB_H #include -#endif #include #ifdef PRIMARY_GROUP_MATCH #include