libtracefs: Make sure 32 bit works on 64 bit file systems

As stat() can overflow if a 32 bit user space reads a file on a file
system that has inodes greater than MAX_INT. Compile with
_FILE_OFFSET_BITS=64 that mitigates this problem on 32 bit user space.

Link: https://lore.kernel.org/linux-trace-devel/20221221134903.4520c983@gandalf.local.home

Reported-by: Mike Frysinger <vapier@google.com>
Tested-by: Ross Zwisler <zwisler@google.com>
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
1 file changed