1
0
mirror of https://github.com/alliedmodders/metamod-source.git synced 2024-11-29 11:24:19 +01:00

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.
This commit is contained in:
Nicholas Hastings 2016-04-26 18:09:14 -04:00
parent c1c75e8016
commit b6c53f1e0e

View File

@ -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':