aports/testing/theforceengine/path_max.patch
Marian Buschsieweke 435fd39354 testing/theforceengine: new aport
https://theforceengine.github.io/
"Modern rebuild of the Jedi Engine (needs purchased copy of game data files to run)
2023-09-12 10:18:50 +00:00

13 lines
400 B
Diff

Fix compilation on ppc64le, where PATH_MAX is provided only if linux/limits.h
is included directly.
--- a/TheForceEngine/TFE_FileSystem/fileutil-posix.cpp
+++ b/TheForceEngine/TFE_FileSystem/fileutil-posix.cpp
@@ -8,6 +8,7 @@
#include <strings.h>
#include <sys/stat.h>
#include <unistd.h>
+#include <linux/limits.h>
#include <TFE_System/system.h>
#include "fileutil.h"
#include "filestream.h"