From 9a585dc44e4b42c867bbebae34eec99a38a1e138 Mon Sep 17 00:00:00 2001 From: Jan Beich Date: Wed, 1 Feb 2017 12:29:47 +0000 Subject: [PATCH] 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 --- mail/bincimap/files/patch-src_convert.h | 9 +++++++++ 1 file changed, 9 insertions(+) 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 #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;