mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 17:59:20 -04:00
Add a few patches to let the port build with clang.
This commit is contained in:
parent
94a687b1f4
commit
f5a589f19e
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=319588
2 changed files with 28 additions and 0 deletions
16
sysutils/xstow/files/patch-src__leoini.h
Normal file
16
sysutils/xstow/files/patch-src__leoini.h
Normal file
|
@ -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
|
||||||
|
|
12
sysutils/xstow/files/patch-src__string_utils.h
Normal file
12
sysutils/xstow/files/patch-src__string_utils.h
Normal file
|
@ -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 );
|
Loading…
Add table
Reference in a new issue