From 9e788adf56f4e9952d7223eb14a497645a03f842 Mon Sep 17 00:00:00 2001 From: Alejandro Colomar Date: Thu, 30 Dec 2021 14:25:49 +0100 Subject: [PATCH] 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 --- configure.ac | 1 - lib/defines.h | 10 +--------- 2 files changed, 1 insertion(+), 10 deletions(-) diff --git a/configure.ac b/configure.ac index 271d1353..b92329a0 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 e4937e1c..afe86398 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