diff options
author | yuangongji <82787816@qq.com> | 2019-09-19 15:24:51 +0800 |
---|---|---|
committer | yuangongji <82787816@qq.com> | 2019-09-19 15:52:49 +0800 |
commit | 148d12ad31b03a813f4ffd9df14a85392aa74130 (patch) | |
tree | db42a0108c1edaa86a3a846313afa6af241e5090 /configure.ac | |
parent | 0cd536b0b33d2aa59cee3805846f81cf4e4a5ce9 (diff) | |
download | libevent-148d12ad31b03a813f4ffd9df14a85392aa74130.tar.gz |
evutil_time: detect and use _gmtime64_s()/_gmtime64()
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index b584341c..9330653f 100644 --- a/configure.ac +++ b/configure.ac @@ -394,6 +394,12 @@ AC_CHECK_FUNCS([ \ getservbyname \ getrandom \ ]) + +AC_CHECK_FUNCS(_gmtime64_s, [have__gmtime64_s=yes], ) +if test "x$have__gmtime64_s" != "xyes"; then + AC_CHECK_FUNCS(_gmtime64) +fi + AM_CONDITIONAL(STRLCPY_IMPL, [test x"$ac_cv_func_strlcpy" = xno]) AC_CACHE_CHECK( |