diff options
author | jbeich <jbeich@FreeBSD.org> | 2017-02-01 20:29:47 +0800 |
---|---|---|
committer | jbeich <jbeich@FreeBSD.org> | 2017-02-01 20:29:47 +0800 |
commit | f49fbb59281ca7ab99103213717b29a12a7f00f0 (patch) | |
tree | 86ba6ad75d6fa9cda5b795efce61718a8ea1aeec | |
parent | 6a1222fa4c4754a9c8ad5a807d9be53cf7b5bbca (diff) | |
download | freebsd-ports-gnome-f49fbb59281ca7ab99103213717b29a12a7f00f0.tar.gz freebsd-ports-gnome-f49fbb59281ca7ab99103213717b29a12a7f00f0.tar.zst freebsd-ports-gnome-f49fbb59281ca7ab99103213717b29a12a7f00f0.zip |
mail/bincimap: unbreak with libc++ 3.9
In file included from address.cc:39:
./convert.h:117:14: error: assigning to 'char *' from incompatible type 'const char *'
if ((t = strchr(hexchars, c)) == 0)
^ ~~~~~~~~~~~~~~~~~~~
./convert.h:122:14: error: assigning to 'char *' from incompatible type 'const char *'
if ((t = strchr(hexchars, d)) == 0)
^ ~~~~~~~~~~~~~~~~~~~
Reported by: pkg-fallout
-rw-r--r-- | mail/bincimap/files/patch-src_convert.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/mail/bincimap/files/patch-src_convert.h b/mail/bincimap/files/patch-src_convert.h index 75f0a9dc998c..d239888ce61f 100644 --- a/mail/bincimap/files/patch-src_convert.h +++ b/mail/bincimap/files/patch-src_convert.h @@ -9,3 +9,12 @@ #include <sys/stat.h> #include "address.h" +@@ -113,7 +113,7 @@ namespace Binc { + unsigned char c = *i; + unsigned char d = *(i + 1); + +- char *t; ++ const char *t; + if ((t = strchr(hexchars, c)) == 0) + return "out of range"; + n = (t - hexchars) << 4; |