freebsd-ports/mail/mmr/files/patch-mime.cpp
Jan Beich 48c5cf152e mail/mmr: unbreak with libc++ 3.9
mime.cpp:895:12: error: assigning to 'char *' from incompatible type 'const char *'
                if ( (ptr=strrchr(file, '/')) != NULL )
                         ^~~~~~~~~~~~~~~~~~~
mimetype.cpp:176:18: error: assigning to 'char *' from incompatible type 'const char *'
        if ( (extension=strrchr(filename, '.')) == NULL )
                        ^~~~~~~~~~~~~~~~~~~~~~
2017-02-01 12:28:19 +00:00

12 lines
296 B
C++

--- mime.cpp.orig 2006-01-24 07:58:33 UTC
+++ mime.cpp
@@ -844,7 +844,8 @@ MIME_body:: AddPart(const char *file, in
char line[BUFSIZ];
int len, blen;
long here;
- char *boundary, *ptr;
+ const char *ptr;
+ char *boundary;
char *newcontent, *newencoding;
/* Open the input file */