summaryrefslogtreecommitdiff
path: root/sysutils/xstow/files/patch-src__leoini.h
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/xstow/files/patch-src__leoini.h
parent- Update to 1.2 (diff)
Add a few patches to let the port build with clang.
Notes
Notes: svn path=/head/; revision=319588
Diffstat (limited to 'sysutils/xstow/files/patch-src__leoini.h')
-rw-r--r--sysutils/xstow/files/patch-src__leoini.h16
1 files changed, 16 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
+