[mupen64plus-video-glide64mk2] 29/60: Add a workaround for systems not defining PATH_MAX
Sven Eckelmann
ecsv-guest at moszumanska.debian.org
Thu Nov 26 06:16:12 UTC 2015
This is an automated email from the git hooks/post-receive script.
ecsv-guest pushed a commit to branch armhf_test
in repository mupen64plus-video-glide64mk2.
commit fd02f4440874acc41bb50aca43682f8c9cca7d03
Author: Sven Eckelmann <sven at narfation.org>
Date: Sun Sep 1 11:59:11 2013 +0200
Add a workaround for systems not defining PATH_MAX
---
debian/changelog | 1 +
debian/patches/path_max_war.patch | 32 ++++++++++++++++++++++++++++++++
debian/patches/series | 1 +
3 files changed, 34 insertions(+)
diff --git a/debian/changelog b/debian/changelog
index cf52135..d4cd7c9 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -4,6 +4,7 @@ mupen64plus-video-glide64mk2 (2.0-2) UNRELEASED; urgency=low
- Add load_hires_cache.patch, Enable the dump_cache to allow loading of
*.dat files
- Add kfreebsd_hurd_support.patch, Allow to compile under kFreeBSD and Hurd
+ - Add path_max_war.patch, Add a workaround for systems not defining PATH_MAX
-- Sven Eckelmann <sven at narfation.org> Fri, 23 Aug 2013 22:50:19 +0200
diff --git a/debian/patches/path_max_war.patch b/debian/patches/path_max_war.patch
new file mode 100644
index 0000000..bb510d5
--- /dev/null
+++ b/debian/patches/path_max_war.patch
@@ -0,0 +1,32 @@
+Description: Add a workaround for systems not defining PATH_MAX
+Author: Sven Eckelmann <sven at narfation.org>
+
+---
+diff --git a/src/Glide64/Ini.cpp b/src/Glide64/Ini.cpp
+index b371a08ea43f98def56c91e468efc3b460a26a10..9f05f907d2fb7196ade607c4b6a93291c980ee5f 100755
+--- a/src/Glide64/Ini.cpp
++++ b/src/Glide64/Ini.cpp
+@@ -59,6 +59,9 @@
+ #define PATH_MAX _MAX_PATH
+ #define stricmp _stricmp
+ #endif
++#ifndef PATH_MAX
++ #define PATH_MAX 4096
++#endif
+
+ FILE *ini;
+ int sectionstart;
+diff --git a/src/Glide64/Main.cpp b/src/Glide64/Main.cpp
+index fabaa3091d74ee0fb41816bd650d2908d14b371d..2fbdca40aaf8d392672da348814f776ad52dd04b 100644
+--- a/src/Glide64/Main.cpp
++++ b/src/Glide64/Main.cpp
+@@ -55,6 +55,9 @@
+ #include <time.h>
+ #define PATH_MAX MAX_PATH
+ #endif
++#ifndef PATH_MAX
++ #define PATH_MAX 4096
++#endif
+ #include "osal_dynamiclib.h"
+ #ifdef TEXTURE_FILTER // Hiroshi Morii <koolsmoky at users.sourceforge.net>
+ #include <stdarg.h>
diff --git a/debian/patches/series b/debian/patches/series
index 3656546..564759b 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -3,3 +3,4 @@ s3tc_removal.patch
init_quit.patch
load_hires_cache.patch
kfreebsd_hurd_support.patch
+path_max_war.patch
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/mupen64plus-video-glide64mk2.git
More information about the Pkg-games-commits
mailing list