]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commit
Remove explicit #define of _FILE_OFFSET_BITS
authorTheodore Ts'o <tytso@mit.edu>
Tue, 30 Apr 2024 23:54:08 +0000 (19:54 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 30 Apr 2024 23:54:08 +0000 (19:54 -0400)
commit3ab99d9b6022ffa369e8ce7ae5643a30028d0db1
treeaf47c069b47f44cc2994693291d2b0736b9e05b0
parent1b042c23ca782c1af06695bf61528f0969378bdc
Remove explicit #define of _FILE_OFFSET_BITS

The problem with explicitly setting _FILE_OFFSET_BITS is that
it's not necessarily a no-op on a 64-bit platform with a 64-bit off_t.
Apparently glibc's mips64el which end up using a different structure
definition for struct stat, and this causes a compatibility problem
with libarchive.  It's not needed on mips64el, since off_t is 64-bits,
but it actually causes problems.

So remove it, since we now use the autoconf's AC_SYS_LARGEFILE, which
will set _FILE_OFFSET_BITS when it is necessary (such as on a 32-bit
i386 Linux platform), and will skip it when it is unnecessary.

Addresses-Debian-Bug: #1070042
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
lib/ext2fs/getenv.c
lib/ext2fs/unix_io.c
misc/create_inode.c
misc/create_inode_libarchive.c
misc/e2fuzz.c
misc/findsuper.c
misc/fuse2fs.c
util/symlinks.c