From 1eaa30756eaa696e8a24cae52e38c5819763bf91 Mon Sep 17 00:00:00 2001 From: Alejandro Colomar Date: Fri, 2 Dec 2022 16:58:12 +0100 Subject: [PATCH] Assume exists MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ISO C99 requires . Many files in the project already include unconditionally, so it's reasonable to assume that it is always available. Link: Cc: Christian Göttsche Cc: Iker Pedrosa Cc: Mike Frysinger Signed-off-by: Alejandro Colomar --- configure.ac | 2 +- lib/defines.h | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/configure.ac b/configure.ac index c39da0f0..6dc5e953 100644 --- a/configure.ac +++ b/configure.ac @@ -36,7 +36,7 @@ LT_INIT dnl Checks for libraries. dnl Checks for header files. -AC_CHECK_HEADERS(crypt.h errno.h fcntl.h limits.h unistd.h sys/time.h utmp.h \ +AC_CHECK_HEADERS(crypt.h fcntl.h limits.h unistd.h sys/time.h utmp.h \ utmpx.h termios.h termio.h sgtty.h sys/ioctl.h syslog.h paths.h \ utime.h ulimit.h sys/capability.h sys/random.h sys/resource.h \ gshadow.h lastlog.h locale.h rpc/key_prot.h netdb.h acl/libacl.h \ diff --git a/lib/defines.h b/lib/defines.h index a47f2571..a849e5a7 100644 --- a/lib/defines.h +++ b/lib/defines.h @@ -48,9 +48,7 @@ extern char * textdomain (const char * domainname); #include #include -#if HAVE_ERRNO_H -# include -#endif +#include #include #include