From 5538ecd7cc07e418335e43ae36746b97f26f7a64 Mon Sep 17 00:00:00 2001 From: Alejandro Colomar Date: Thu, 30 Dec 2021 15:47:22 +0100 Subject: [PATCH] Remove AC_HEADER_STAT and STAT_MACROS_BROKEN As autoconf documentation says, this macro is obsolescent, as no current systems have the bug in S_ISDIR, S_ISREG, etc.. The affected systems were Tektronix UTekV, Amdahl UTS, and Motorola System V/88. Signed-off-by: Alejandro Colomar --- configure.ac | 1 - lib/defines.h | 8 -------- 2 files changed, 9 deletions(-) diff --git a/configure.ac b/configure.ac index 34916771..fc64fecd 100644 --- a/configure.ac +++ b/configure.ac @@ -57,7 +57,6 @@ AC_SYS_LARGEFILE dnl Checks for typedefs, structures, and compiler characteristics. AC_C_CONST -AC_HEADER_STAT AC_CHECK_MEMBERS([struct stat.st_rdev]) AC_CHECK_MEMBERS([struct stat.st_atim]) AC_CHECK_MEMBERS([struct stat.st_atimensec]) diff --git a/lib/defines.h b/lib/defines.h index afe86398..16642e7a 100644 --- a/lib/defines.h +++ b/lib/defines.h @@ -213,14 +213,6 @@ static inline void memzero(void *ptr, size_t size) # define SEEK_END 2 #endif -#ifdef STAT_MACROS_BROKEN -# define S_ISDIR(x) ((x) & S_IFMT) == S_IFDIR) -# define S_ISREG(x) ((x) & S_IFMT) == S_IFREG) -# ifdef S_IFLNK -# define S_ISLNK(x) ((x) & S_IFMT) == S_IFLNK) -# endif -#endif - #ifndef S_ISLNK #define S_ISLNK(x) (0) #endif