Don't use _LARGEFILE64_SOURCE in ext4_utils.h

Defining _LARGEFILE64_SOURCE in ext4_utils.h is problematic because
ext4_utils.h is included by system/core/fs_mgr after system headers,
which could cause inconsistent definitions.  _LARGEFILE64_SOURCE was
only being used for lseek64, which is unnecessary when _FILE_OFFSET_BITS=64
is set.  Remove _LARGEFILE64_SOURCE and switch lseek64 to lseek.

Also move _FILE_OFFSET_BITS=64 to the Android.bp file, the functions
defined in ext4_utils.h don't use off_t.  Remove _GNU_SOURCE, it is
already set by the default -std=gnu11.

This is a step towards removing usage of _LARGEFILE64_SOURCE in favor
of setting _FILE_OFFSET_BITS=64 globally.

Test: builds
Change-Id: I14c7e0ca0fd85920aa0b1d1a18fc5a11d352a4c5
3 files changed