aboutsummaryrefslogtreecommitdiff
path: root/sysutils
diff options
context:
space:
mode:
authorRaphael Kubo da Costa <rakuco@FreeBSD.org>2013-06-01 20:20:18 +0000
committerRaphael Kubo da Costa <rakuco@FreeBSD.org>2013-06-01 20:20:18 +0000
commitf5a589f19eba95e906b02a9386ba649a37cdd79c (patch)
tree4e8c585aa9b6b1b8c2858a36f178dbcbad3d81d1 /sysutils
parent94a687b1f455c207cf51d06c57a1dde95331e95c (diff)
Notes
Diffstat (limited to 'sysutils')
-rw-r--r--sysutils/xstow/files/patch-src__leoini.h16
-rw-r--r--sysutils/xstow/files/patch-src__string_utils.h12
2 files changed, 28 insertions, 0 deletions
diff --git a/sysutils/xstow/files/patch-src__leoini.h b/sysutils/xstow/files/patch-src__leoini.h
new file mode 100644
index 000000000000..cbd8ac1ce89c
--- /dev/null
+++ b/sysutils/xstow/files/patch-src__leoini.h
@@ -0,0 +1,16 @@
+--- src/leoini.h~ 2013-06-01 22:28:45.000000000 +0300
++++ src/leoini.h 2013-06-01 22:32:05.000000000 +0300
+@@ -260,11 +260,9 @@
+
+ if( start == std::string::npos ||
+ end == std::string::npos )
+- s = "";
+- else
+- s = s.substr( start+1, start-end -1 );
++ return s2x<A>("");
+
+- return s2x<A>(s);
++ return s2x<A>(s.substr( start+1, start-end -1 ));
+ }
+ } // namespace Leo
+
diff --git a/sysutils/xstow/files/patch-src__string_utils.h b/sysutils/xstow/files/patch-src__string_utils.h
new file mode 100644
index 000000000000..d63aef204026
--- /dev/null
+++ b/sysutils/xstow/files/patch-src__string_utils.h
@@ -0,0 +1,12 @@
+--- src/string_utils.h~ 2013-06-01 23:10:50.000000000 +0300
++++ src/string_utils.h 2013-06-01 22:56:43.000000000 +0300
+@@ -28,6 +28,9 @@
+ # define STRSTREAM
+ #endif
+
++typedef std::vector<std::string> vec_string;
++std::ostream& operator<<( std::ostream& out, const vec_string &v );
++
+ std::string toupper( std::string s );
+ std::string strip( const std::string& str, const std::string& what = " \t\n\0" );
+ bool is_int( const std::string &s );