]> git.ipfire.org Git - thirdparty/shadow.git/commitdiff
Remove AC_HEADER_STAT and STAT_MACROS_BROKEN
authorAlejandro Colomar <alx.manpages@gmail.com>
Thu, 30 Dec 2021 14:47:22 +0000 (15:47 +0100)
committerSerge Hallyn <serge@hallyn.com>
Sat, 15 Jan 2022 14:25:53 +0000 (08:25 -0600)
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 <alx.manpages@gmail.com>
configure.ac
lib/defines.h

index 3491677167ae77d1d9adcced351ded4e0a25184d..fc64fecd15bc2a201554ef3c20a0e6bc200e5da9 100644 (file)
@@ -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])
index afe86398a0fd0edee9d7d42fad53c114a68cd4d7..16642e7ac131fc78125c3f4cce9b9d5e255e37a6 100644 (file)
@@ -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