1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-30 10:15:36 +01:00

Fix missing PATH_MAX on some Linux toolchains

Some toolchains (e.g. clang 7) require explicit include of <linux/limits.h> for PATH_MAX.
This commit is contained in:
Michał Janiszewski
2018-03-20 08:18:56 +01:00
committed by GitHub
parent 67f74119cf
commit d0ec97bab2

View File

@@ -18,6 +18,10 @@
#include <limits.h>
#include <pwd.h>
#if defined(__linux__)
// for PATH_MAX
#include <linux/limits.h>
#endif // __linux__
#include "../core/Path.hpp"
#include "../core/Util.hpp"
#include "../OpenRCT2.h"