summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sys-fs/fusepod/files')
-rw-r--r--sys-fs/fusepod/files/fusepod-0.5.2-64bit-fixes.patch29
-rw-r--r--sys-fs/fusepod/files/fusepod-0.5.2-additional-headers.patch20
2 files changed, 49 insertions, 0 deletions
diff --git a/sys-fs/fusepod/files/fusepod-0.5.2-64bit-fixes.patch b/sys-fs/fusepod/files/fusepod-0.5.2-64bit-fixes.patch
new file mode 100644
index 000000000..fdd4a834a
--- /dev/null
+++ b/sys-fs/fusepod/files/fusepod-0.5.2-64bit-fixes.patch
@@ -0,0 +1,29 @@
+--- src.bak/fusepod_ipod.cpp 2010-08-21 00:02:22.000000000 +0200
++++ src/fusepod_ipod.cpp 2010-08-21 00:25:38.000000000 +0200
+@@ -231,7 +231,7 @@
+ {"m4a", "mp4"},
+ {"m4p", "mp4"} };
+
+- unsigned int pos = path.rfind ('.');
++ size_t pos = path.rfind ('.');
+ if (pos == string::npos) {
+ itdb_track_free (track);
+ return 0;
+--- src.bak/fusepod_util.cpp 2010-08-21 00:23:41.000000000 +0200
++++ src/fusepod_util.cpp 2010-08-21 00:34:30.000000000 +0200
+@@ -27,11 +27,11 @@
+ }
+
+ string fusepod_strip_string (const string & s) {
+- unsigned int l = s.find_first_not_of (" \t\n\r");
++ size_t l = s.find_first_not_of (" \t\n\r");
+ if (l == string::npos)
+ return "";
+- int r = s.find_first_not_of (" \t\n\r");
+- return s.substr (l, s.length () - r);
++ size_t r = s.find_last_not_of (" \t\n\r");
++ return s.substr (l, r + 1 - l);
+ }
+
+ string fusepod_check_string (const string & s, const string & unknown) {
+
diff --git a/sys-fs/fusepod/files/fusepod-0.5.2-additional-headers.patch b/sys-fs/fusepod/files/fusepod-0.5.2-additional-headers.patch
new file mode 100644
index 000000000..2046ec42c
--- /dev/null
+++ b/sys-fs/fusepod/files/fusepod-0.5.2-additional-headers.patch
@@ -0,0 +1,20 @@
+--- src.bak/fusepod_util.cpp 2010-08-21 00:02:22.000000000 +0200
++++ src/fusepod_util.cpp 2010-08-21 00:03:23.000000000 +0200
+@@ -14,6 +14,7 @@
+
+ #include "fusepod_util.h"
+
++#include <cstdio> // for sprintf()
+ #include <cstring>
+ #include <set>
+
+--- src.bak/fusepod_util.h 2010-08-21 00:02:22.000000000 +0200
++++ src/fusepod_util.h 2010-08-21 00:02:50.000000000 +0200
+@@ -17,6 +17,7 @@
+
+ #include <vector>
+ #include <string>
++#include <strings.h> // for strcasecmp
+
+ using std::string;
+ using std::vector;