diff options
author | leotheleon | 2023-04-25 19:56:29 +0300 |
---|---|---|
committer | leotheleon | 2023-04-25 19:56:29 +0300 |
commit | ff6e31863909a30ebfd44a8be7383ecfbed063c1 (patch) | |
tree | b060d0e473802b39dcac0de1209cf82080c3d919 /mkisoxml-posix.patch | |
download | aur-mkpsxiso126.tar.gz |
Initial commit
Diffstat (limited to 'mkisoxml-posix.patch')
-rw-r--r-- | mkisoxml-posix.patch | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/mkisoxml-posix.patch b/mkisoxml-posix.patch new file mode 100644 index 000000000000..a9acd196cca1 --- /dev/null +++ b/mkisoxml-posix.patch @@ -0,0 +1,39 @@ +--- main-.cpp 2023-03-10 13:52:38.000000000 +0200 ++++ main.cpp 2023-03-10 14:00:41.000000000 +0200 +@@ -2,6 +2,7 @@ + #include <sys/stat.h> + #include <dirent.h> + #include <string.h> ++#include <unistd.h> + #include <tinyxml2.h> + + +@@ -24,8 +25,8 @@ + } + + { +- char currentDir[MAX_PATH]; +- getcwd(currentDir, MAX_PATH); ++ char currentDir[PATH_MAX]; ++ getcwd(currentDir, PATH_MAX); + dirElement->SetAttribute("srcdir", currentDir); + } + +@@ -81,7 +82,7 @@ + + } + +-char oldDir[MAX_PATH]; ++char oldDir[PATH_MAX]; + + int main(int argc, const char* argv[]) { + +@@ -132,7 +133,7 @@ + + } + +- getcwd(oldDir, MAX_PATH); ++ getcwd(oldDir, PATH_MAX); + + tinyxml2::XMLDocument xmldoc; + |