diff mbox

[PATCHv2,xfsprogs,01/14] configure: use AC_SYS_LARGEFILE

Message ID bd011b1c8a9f0f17626d36c8c9868355dc6182a9.1471107858.git.felix.janda@posteo.de (mailing list archive)
State Accepted
Headers show

Commit Message

Felix Janda Aug. 7, 2016, 5:21 a.m. UTC
The autoconf macro AC_SYS_LARGEFILE defines _FILE_OFFSET_BITS=64
where necessary to ensure that off_t and all interfaces using off_t
are 64bit, even on 32bit systems.

Signed-off-by: Felix Janda <felix.janda@posteo.de>
---
 configure.ac | 2 ++
 1 file changed, 2 insertions(+)

Comments

Christoph Hellwig Aug. 18, 2016, 5:37 p.m. UTC | #1
On Sun, Aug 07, 2016 at 07:21:20AM +0200, Felix Janda wrote:
> The autoconf macro AC_SYS_LARGEFILE defines _FILE_OFFSET_BITS=64
> where necessary to ensure that off_t and all interfaces using off_t
> are 64bit, even on 32bit systems.
> 
> Signed-off-by: Felix Janda <felix.janda@posteo.de>

Thanks, this looks good:

Reviewed-by: Christoph Hellwig <hch@lst.de>
diff mbox

Patch

diff --git a/configure.ac b/configure.ac
index 1bb5fef..8fa96a5 100644
--- a/configure.ac
+++ b/configure.ac
@@ -107,6 +107,8 @@  AC_PACKAGE_UTILITIES(xfsprogs)
 AC_MULTILIB($enable_lib64)
 AC_RT($enable_librt)
 
+AC_SYS_LARGEFILE
+
 AC_PACKAGE_NEED_UUID_H
 AC_PACKAGE_NEED_UUIDCOMPARE