]> git.ipfire.org Git - thirdparty/shadow.git/commitdiff
Remove AC_HEADER_TIME and TIME_WITH_SYS_TIME checks
authorAlejandro Colomar <alx.manpages@gmail.com>
Thu, 30 Dec 2021 15:12:15 +0000 (16:12 +0100)
committerSerge Hallyn <serge@hallyn.com>
Sat, 15 Jan 2022 14:25:53 +0000 (08:25 -0600)
Systems on which <sys/time.h> conflicted with <time.h> are obsolete.

This macro has been marked as obsolete by autoconf documentation.

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
configure.ac
lib/defines.h

index e97940107d897863c5b0fa02a34fe079aed7198d..50ce7d85e35042d83a74f1609e6aba5d79dc0cf3 100644 (file)
@@ -60,7 +60,6 @@ AC_CHECK_MEMBERS([struct stat.st_atim])
 AC_CHECK_MEMBERS([struct stat.st_atimensec])
 AC_CHECK_MEMBERS([struct stat.st_mtim])
 AC_CHECK_MEMBERS([struct stat.st_mtimensec])
-AC_HEADER_TIME
 AC_STRUCT_TM
 
 AC_CHECK_MEMBERS([struct utmp.ut_type,
index 16642e7ac131fc78125c3f4cce9b9d5e255e37a6..55b42bee5f47d6ea20b3f3f6ce5af01e3b403fb3 100644 (file)
@@ -82,16 +82,8 @@ extern char * textdomain (const char * domainname);
 # include <crypt.h>
 #endif
 
-#if TIME_WITH_SYS_TIME
-# include <sys/time.h>
-# include <time.h>
-#else                          /* not TIME_WITH_SYS_TIME */
-# if HAVE_SYS_TIME_H
-#  include <sys/time.h>
-# else
-#  include <time.h>
-# endif
-#endif                         /* not TIME_WITH_SYS_TIME */
+#include <sys/time.h>
+#include <time.h>
 
 #ifdef HAVE_MEMSET_S
 # define memzero(ptr, size) memset_s((ptr), 0, (size))