environment/autoconf_cache: switch to off_t=4 for 32bit archs;

Assume that _FILE_OFFSET_BITS=64 is always defined to get proper 64bit support.

Setting it to 8 was giving unexpected results in e2fsprogs, which does not
defined _FILE_OFFSET_BITS=64, and checks for sizeof(off_t) >= sizeof(long long)
to use lseek() rather than lseek64().
This commit is contained in:
Juan RP 2014-08-19 18:28:11 +02:00
parent 61372816e0
commit 7d41c7bcd8
2 changed files with 2 additions and 2 deletions

View File

@ -10,7 +10,7 @@ ac_cv_sizeof_int_p=${ac_cv_sizeof_int_p=4}
ac_cv_sizeof_long=${ac_cv_sizeof_long=4}
ac_cv_sizeof_long_int=${ac_cv_sizeof_long_int=4}
ac_cv_sizeof_long_long=${ac_cv_sizeof_long_long=8}
ac_cv_sizeof_off_t=${ac_cv_sizeof_off_t=8}
ac_cv_sizeof_off_t=${ac_cv_sizeof_off_t=4}
ac_cv_sizeof_short=${ac_cv_sizeof_short=2}
ac_cv_sizeof_short_int=${ac_cv_sizeof_short_int=2}
ac_cv_sizeof_size_t=${ac_cv_sizeof_size_t=4}

View File

@ -17,7 +17,7 @@ ac_cv_sizeof_ssize_t=${ac_cv_sizeof_ssize_t=4}
ac_cv_sizeof_void_p=${ac_cv_sizeof_void_p=4}
ac_cv_sizeof_long_p=${ac_cv_sizeof_long_p=4}
ac_cv_sizeof_float=${ac_cv_sizeof_float=4}
ac_cv_sizeof_off_t=${ac_cv_sizeof_off_t=8}
ac_cv_sizeof_off_t=${ac_cv_sizeof_off_t=4}
ac_cv_sizeof_uid_t=${ac_cv_sizeof_uid_t=4}
ac_cv_sizeof_gid_t=${ac_cv_sizeof_gid_t=4}
ac_cv_sizeof_ino_t=${ac_cv_sizeof_ino_t=4}