From: fanquake Date: Tue, 15 Jun 2021 06:10:29 +0000 (+0800) Subject: build: remove call to AC_HEADER_TIME X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=67f808ece8cff2f130efd90a9f77a2dbce918153;p=libevent build: remove call to AC_HEADER_TIME Besides the fact that the *_TIME_WITH_SYS_TIME define doesn't seem to be used anywhere in the libevent source, this macro is also obselescent. > This macro is obsolescent, as current systems can include both files when they exist. > New programs need not use this macro. See: https://www.gnu.org/savannah-checkouts/gnu/autoconf/manual/autoconf-2.67/autoconf.html#index-AC_005fHEADER_005fTIME-640. --- diff --git a/configure.ac b/configure.ac index 3a526e24..57702de9 100644 --- a/configure.ac +++ b/configure.ac @@ -283,7 +283,6 @@ fi dnl Checks for typedefs, structures, and compiler characteristics. AC_C_CONST AC_C_INLINE -AC_HEADER_TIME dnl Checks for library functions. AC_CHECK_FUNCS([accept4 arc4random arc4random_buf arc4random_addrandom eventfd epoll_create1 fcntl getegid geteuid getifaddrs gettimeofday issetugid mach_absolute_time mmap nanosleep pipe pipe2 putenv sendfile setenv setrlimit sigaction signal strsignal strlcpy strsep strtok_r strtoll sysctl timerfd_create umask unsetenv usleep getrandom ]) diff --git a/event-config.h.cmake b/event-config.h.cmake index 45cd69a8..9fff3487 100644 --- a/event-config.h.cmake +++ b/event-config.h.cmake @@ -479,9 +479,6 @@ /* The size of `size_t', as computed by sizeof. */ #define EVENT__SIZEOF_SIZE_T @EVENT__SIZEOF_SIZE_T@ -/* Define to 1 if you can safely include both and . */ -#cmakedefine EVENT__TIME_WITH_SYS_TIME 1 - /* The size of `socklen_t', as computed by sizeof. */ #define EVENT__SIZEOF_SOCKLEN_T @EVENT__SIZEOF_SOCKLEN_T@