summaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorvanilla <vanilla@FreeBSD.org>2003-05-06 09:07:48 +0000
committervanilla <vanilla@FreeBSD.org>2003-05-06 09:07:48 +0000
commit38569f0bc70559e10b0c507009953f15b01f0677 (patch)
tree4e790d9a8bf197deb4848ff3058e172ce2643da7 /mail
parent26b962ae0d8658dce8ee29485ad4975851d85e99 (diff)
downloadFreeBSD-ports-38569f0bc70559e10b0c507009953f15b01f0677.zip
FreeBSD-ports-38569f0bc70559e10b0c507009953f15b01f0677.tar.gz
Fix broken on alpha.
PR: ports/51800 Submitted by: maintainer.
Diffstat (limited to 'mail')
-rw-r--r--mail/bincimap/files/patch-src::util::convert.h39
1 files changed, 39 insertions, 0 deletions
diff --git a/mail/bincimap/files/patch-src::util::convert.h b/mail/bincimap/files/patch-src::util::convert.h
new file mode 100644
index 0000000..4168ff7
--- /dev/null
+++ b/mail/bincimap/files/patch-src::util::convert.h
@@ -0,0 +1,39 @@
+replace switch statement in inline function with if/then/else; fixes compiler
+failure on alpha: ``relocation truncated to fit: GPREL32 *UND*''
+
+diff -u -r1.4 convert.h
+--- src/util/convert.h 8 Apr 2003 16:46:28 -0000 1.4
++++ src/util/convert.h 9 Apr 2003 08:02:54 -0000
+@@ -269,6 +269,7 @@
+ {
+ std::string regex = "^";
+ for (std::string::const_iterator i = s_in.begin(); i != s_in.end(); ++i) {
++ /*
+ switch (*i) {
+ case '.':
+ case '[': case ']':
+@@ -291,6 +292,24 @@
+ default:
+ regex += *i;
+ break;
++ }
++ */
++ if (*i == '.' || *i == '[' || *i == ']' || *i == '{' || *i == '}' ||
++ *i == '(' || *i == ')' || *i == '^' || *i == '$' || *i == '?' ||
++ *i == '+' || *i == '\\') {
++ regex += "\\";
++ regex += *i;
++ }
++ else if (*i == '*') {
++ regex += ".*?";
++ }
++ else if (*i == '%') {
++ regex += "[^\\";
++ regex += delimiter;
++ regex += "]*?";
++ }
++ else {
++ regex += *i;
+ }
+ }
+
OpenPOWER on IntegriCloud