[procps] [PATCH] enable transparent large file support

  • From: Mike Frysinger <vapier@xxxxxxxxxx>
  • To: procps@xxxxxxxxxxxxx
  • Date: Mon, 7 Mar 2016 15:36:59 -0500

Historically LFS mattered only to open/read large files.  A few programs
here use open/seek, but not generally on files that are large.  However,
LFS also applies to stat which procps does in a bunch of places -- some
filesystems have 64bit inodes and attempts to do a 32bit stat will throw
an error.

Enable transparent LFS everywhere to avoid this.
---
 configure.ac | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/configure.ac b/configure.ac
index ac5ac9f..033bf52 100644
--- a/configure.ac
+++ b/configure.ac
@@ -12,7 +12,8 @@ AC_CONFIG_SRCDIR([free.c])
 AC_CONFIG_HEADERS([config.h])
 
 # Checks for programs.
-AC_USE_SYSTEM_EXTENSIONS(_GNU_SOURCE)
+AC_USE_SYSTEM_EXTENSIONS
+AC_SYS_LARGEFILE
 AC_PROG_AWK
 AC_PROG_CC
 AC_PROG_CC_STDC
-- 
2.6.2


Other related posts: