android(ndk r23) has timegm

pull/1822/head
FH0 2021-09-16 14:37:31 +08:00 committed by GitHub
parent 21f476588c
commit 11fa3e9fe4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 11 deletions

View File

@ -925,17 +925,9 @@ case "$host" in
;;
esac
case "$host" in
*android*)
# timegm is not declared with Android NDK r12b
AM_CONDITIONAL([HAVE_TIMEGM], false)
;;
*)
AC_CHECK_FUNCS([timegm],
[AM_CONDITIONAL([HAVE_TIMEGM], true)],
[AM_CONDITIONAL([HAVE_TIMEGM], false)])
;;
esac
AC_CHECK_FUNCS([timegm],
[AM_CONDITIONAL([HAVE_TIMEGM], true)],
[AM_CONDITIONAL([HAVE_TIMEGM], false)])
AC_CHECK_FUNCS([port_associate], [have_port_associate=yes])
AM_CONDITIONAL([HAVE_PORT_ASSOCIATE], [test "x$have_port_associate" = "xyes"])