mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
adcc60c6bf
The next version of xfslibs will require that its users enable transparent largefile support. This broke building xfstests on 32-bit Linux because _FILE_OFFSET_BITS=64 was not getting defined when testing for xfs headers. Fix this by defining _FILE_OFFSET_BITS=64 when doing configure checks for the xfs headers. It was not necessary to define _FILE_OFFSET_BITS=64 for the actual build because it's already done, in builddefs.in. The problem could also be solved by adding AC_SYS_LARGEFILE to configure.ac. It's debatable, but I chose not to do that because it might give the impression that it affects the actual compilation of the test programs and not just the configure checks. (Since not all .c files include config.h first, a _FILE_OFFSET_BITS definition in config.h wouldn't always take effect.) Signed-off-by: Eric Biggers <ebiggers@google.com> Reviewed-by: Eryu Guan <eguan@redhat.com> Signed-off-by: Eryu Guan <eguan@redhat.com>