From: Alejandro Colomar Date: Fri, 2 Dec 2022 15:51:05 +0000 (+0100) Subject: Assume exists X-Git-Tag: 4.14.0-rc1~310 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c4d9dcacc96376d3b605e81c063292b66ac35d8f;p=thirdparty%2Fshadow.git Assume exists 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 --- diff --git a/configure.ac b/configure.ac index a22b47bdd..c39da0f09 100644 --- a/configure.ac +++ b/configure.ac @@ -36,8 +36,6 @@ LT_INIT dnl Checks for libraries. dnl Checks for header files. -AC_HEADER_STDBOOL - AC_CHECK_HEADERS(crypt.h errno.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 \ diff --git a/lib/defines.h b/lib/defines.h index 7950cdfaa..a47f25719 100644 --- a/lib/defines.h +++ b/lib/defines.h @@ -6,21 +6,7 @@ #include "config.h" -#if HAVE_STDBOOL_H -# include -#else -# if ! HAVE__BOOL -# ifdef __cplusplus -typedef bool _Bool; -# else -typedef unsigned char _Bool; -# endif -# endif -# define bool _Bool -# define false (0) -# define true (1) -# define __bool_true_false_are_defined 1 -#endif +#include /* Take care of NLS matters. */ #ifdef S_SPLINT_S