ports/mail/bincimap/files/patch-src_convert.h
Jan Beich 9a585dc44e 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
2017-02-01 12:29:47 +00:00

20 lines
462 B
C++

--- src/convert.h.orig 2005-02-08 20:30:22 UTC
+++ src/convert.h
@@ -43,6 +43,8 @@
#include <iostream>
#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
#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;