Support lseek64.

Android doesn't have 64-bit off_t, so use off64_t instead.
This commit is contained in:
Vladimir Serbinenko 2017-01-23 20:21:05 +03:00 committed by Vincent Batts
parent 7171645366
commit 4152833f0c
2 changed files with 12 additions and 1 deletions

View file

@ -373,7 +373,10 @@ case "$host_os" in
;;
*)
AC_CHECK_SIZEOF(off_t)
test x"$ac_cv_sizeof_off_t" = x8 || AC_MSG_ERROR([Large file support is required]);;
if test x"$ac_cv_sizeof_off_t" != x8 ; then
AC_CHECK_SIZEOF(off64_t)
test x"$ac_cv_sizeof_off64_t" = x8 || AC_MSG_ERROR([Large file support is required])
fi;;
esac
if test x$USE_NLS = xno; then