From 67f808ece8cff2f130efd90a9f77a2dbce918153 Mon Sep 17 00:00:00 2001 From: fanquake Date: Tue, 15 Jun 2021 14:10:29 +0800 Subject: [PATCH] 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. --- configure.ac | 1 - event-config.h.cmake | 3 --- 2 files changed, 4 deletions(-) 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@ -- 2.40.0