opnsense-ports/archivers/urbackup-client/files/patch-client_stringtools.h
Franco Fichtner 85d066a61f */*: sync with upstream
Taken from: HardenedBSD
2018-09-03 02:25:18 +02:00

18 lines
880 B
C++

Build fails on FreeBSD due to urbackup's local definitions of isnumber()
conflicting with a library function. This patch renames the port's definition to
resolve the conflict. Analogous changes are also made in client/stringtools.cpp
--- client/stringtools.h.orig 2018-08-12 19:18:09 UTC
+++ client/stringtools.h
@@ -69,9 +69,9 @@ std::wstring replaceonce(std::wstring to
void Tokenize(std::string& str, std::vector<std::string> &tokens, std::string seps);
void Tokenize(std::wstring& str, std::vector<std::wstring> &tokens, std::wstring seps);
void TokenizeMail(std::string& str, std::vector<std::string> &tokens, std::string seps);
-bool isnumber(char ch);
+bool isnumber_local(char ch);
bool isletter(char ch);
-bool isnumber(wchar_t ch);
+bool isnumber_local(wchar_t ch);
bool isletter(wchar_t ch);
void strupper(std::string *pStr);
void strupper(std::wstring *pStr);