From eefaf55b1be99e1106e5927fe1c9360b940f3e44 Mon Sep 17 00:00:00 2001 From: Alejandro Colomar Date: Thu, 30 Dec 2021 14:56:52 +0100 Subject: [PATCH] Remove unused autoconf check: gettimeofday(3) The macro HAVE_GETTIMEOFDAY is not being used anywhere. BTW, the function is defined by SVr4, 4.3BSD, and POSIX.1-2001, so it's likely that it is always available. POSIX.1-2008 marks it as obsolete, but only because clock_gettime(2) provides more precission. Since gettimeofday(3) is in use by many big projects, and it has no obvious dangers, it's likely that it will continue to exist even if it's outside of the POSIX standard. Signed-off-by: Alejandro Colomar --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 1f0993df..764734be 100644 --- a/configure.ac +++ b/configure.ac @@ -49,7 +49,7 @@ dnl shadow now uses the libc's shadow implementation AC_CHECK_HEADER([shadow.h],,[AC_MSG_ERROR([You need a libc with shadow.h])]) AC_CHECK_FUNCS(arc4random_buf l64a fchmod fchown fsync futimes \ - getentropy getrandom getspnam gettimeofday getusershell \ + getentropy getrandom getspnam getusershell \ getutent initgroups lchown lckpwdf lstat lutimes \ setgroups sigaction updwtmp updwtmpx innetgr getpwnam_r \ getpwuid_r getgrnam_r getgrgid_r getspnam_r getaddrinfo ruserok \