]> granicus.if.org Git - libevent/commitdiff
build: remove call to AC_HEADER_TIME
authorfanquake <fanquake@gmail.com>
Tue, 15 Jun 2021 06:10:29 +0000 (14:10 +0800)
committerfanquake <fanquake@gmail.com>
Fri, 9 Jul 2021 04:34:10 +0000 (12:34 +0800)
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
event-config.h.cmake

index 3a526e248007dcc60233d42bd61c1cb7a744eb28..57702de9d88933afb90bc00a0c031cbc307ac12a 100644 (file)
@@ -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 ])
index 45cd69a88f6e78aa37e6bc97cf2cc45e7deb6763..9fff3487753e201f758fc910022f5545312a462d 100644 (file)
 /* 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 <sys/time.h> and <time.h>. */
-#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@