svn commit: r319588 - head/sysutils/xstow/files
Raphael Kubo da Costa
rakuco at FreeBSD.org
Sat Jun 1 20:20:19 UTC 2013
Author: rakuco
Date: Sat Jun 1 20:20:18 2013
New Revision: 319588
URL: http://svnweb.freebsd.org/changeset/ports/319588
Log:
Add a few patches to let the port build with clang.
Added:
head/sysutils/xstow/files/
head/sysutils/xstow/files/patch-src__leoini.h (contents, props changed)
head/sysutils/xstow/files/patch-src__string_utils.h (contents, props changed)
Added: head/sysutils/xstow/files/patch-src__leoini.h
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/sysutils/xstow/files/patch-src__leoini.h Sat Jun 1 20:20:18 2013 (r319588)
@@ -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
+
Added: head/sysutils/xstow/files/patch-src__string_utils.h
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/sysutils/xstow/files/patch-src__string_utils.h Sat Jun 1 20:20:18 2013 (r319588)
@@ -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 );
More information about the svn-ports-head
mailing list