From: Alejandro Colomar Date: Thu, 30 Dec 2021 13:25:49 +0000 (+0100) Subject: Remove AC_HEADER_SYS_WAIT X-Git-Tag: 4.12~90 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9e788adf56f4e9952d7223eb14a497645a03f842;p=thirdparty%2Fshadow.git Remove AC_HEADER_SYS_WAIT GNU autoconf documentation marks this macro as obsolescent, as current systems are compatible with POSIX. Simplify code to unconditionally include , and don't redefine WIFEXITSTATUS() and WIFEXITED(), since they are mandated by POSIX. Signed-off-by: Alejandro Colomar --- diff --git a/configure.ac b/configure.ac index 271d13531..b92329a08 100644 --- a/configure.ac +++ b/configure.ac @@ -37,7 +37,6 @@ AM_PROG_LIBTOOL dnl Checks for libraries. dnl Checks for header files. -AC_HEADER_SYS_WAIT AC_HEADER_STDBOOL AC_CHECK_HEADERS(crypt.h errno.h fcntl.h limits.h unistd.h sys/time.h utmp.h \ diff --git a/lib/defines.h b/lib/defines.h index e4937e1c3..afe86398a 100644 --- a/lib/defines.h +++ b/lib/defines.h @@ -68,15 +68,7 @@ extern char * textdomain (const char * domainname); #include #include -#if HAVE_SYS_WAIT_H -# include -#endif -#ifndef WEXITSTATUS -# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) -#endif -#ifndef WIFEXITED -# define WIFEXITED(stat_val) (((stat_val) & 255) == 0) -#endif +#include #if HAVE_UNISTD_H # include