From 29a5daab9873aae17d53c06cebf1c71454a8c346 Mon Sep 17 00:00:00 2001 From: Nicholas Hastings Date: Tue, 26 Apr 2016 23:17:36 -0400 Subject: [PATCH] Allow support for running on filesystems that use 64-bit inodes on Linux. (#502) 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 b16a557d..f9e41021 100644 --- a/AMBuildScript +++ b/AMBuildScript @@ -291,7 +291,7 @@ class SMConfig(object): cxx.cflags += ['/Oy-'] def configure_linux(self, cxx): - cxx.defines += ['_LINUX', 'POSIX'] + cxx.defines += ['_LINUX', 'POSIX', '_FILE_OFFSET_BITS=64'] cxx.linkflags += ['-Wl,--exclude-libs,ALL', '-lm'] if cxx.vendor == 'gcc': cxx.linkflags += ['-static-libgcc']