From b6c53f1e0e3ae55f2dd64d477eb5bea3897b7dbe Mon Sep 17 00:00:00 2001 From: Nicholas Hastings Date: Tue, 26 Apr 2016 18:09:14 -0400 Subject: [PATCH] Allow support for running on filesystems that use 64-bit inodes on Linux. Most supported games don't even support this case, but at least CS:GO does. WIthout this fix, some filesystem calls can fail, or in the case of readdir, fail to return all/any files. This was first observed when using an XFS-formatted volume on CentOS 7 x64. --- AMBuildScript | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AMBuildScript b/AMBuildScript index aafc0d6..f0cfbe1 100644 --- a/AMBuildScript +++ b/AMBuildScript @@ -217,7 +217,7 @@ class MMSConfig(object): # Platform-specifics if builder.target_platform == 'linux': - cfg.defines += ['_LINUX', 'POSIX'] + cfg.defines += ['_LINUX', 'POSIX', '_FILE_OFFSET_BITS=64'] if cxx.name == 'gcc': cfg.linkflags += ['-static-libgcc'] elif cxx.name == 'clang':