diff options
author | jbeich <jbeich@FreeBSD.org> | 2017-02-01 20:28:19 +0800 |
---|---|---|
committer | jbeich <jbeich@FreeBSD.org> | 2017-02-01 20:28:19 +0800 |
commit | 641e711abe6ad2a1f172e025cc17a514c2962e1b (patch) | |
tree | a67376bce4175de425d602255bb9314844ba761d | |
parent | 94c151947f77646e69c37af973843e62fa89a56a (diff) | |
download | freebsd-ports-gnome-641e711abe6ad2a1f172e025cc17a514c2962e1b.tar.gz freebsd-ports-gnome-641e711abe6ad2a1f172e025cc17a514c2962e1b.tar.zst freebsd-ports-gnome-641e711abe6ad2a1f172e025cc17a514c2962e1b.zip |
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 )
^~~~~~~~~~~~~~~~~~~~~~
-rw-r--r-- | mail/mmr/files/patch-mime.cpp | 12 | ||||
-rw-r--r-- | mail/mmr/files/patch-mimetype.cpp | 12 |
2 files changed, 24 insertions, 0 deletions
diff --git a/mail/mmr/files/patch-mime.cpp b/mail/mmr/files/patch-mime.cpp new file mode 100644 index 000000000000..0cee0206b9b1 --- /dev/null +++ b/mail/mmr/files/patch-mime.cpp @@ -0,0 +1,12 @@ +--- 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 */ diff --git a/mail/mmr/files/patch-mimetype.cpp b/mail/mmr/files/patch-mimetype.cpp new file mode 100644 index 000000000000..9f547185cc3c --- /dev/null +++ b/mail/mmr/files/patch-mimetype.cpp @@ -0,0 +1,12 @@ +--- mimetype.cpp.orig 2004-12-11 19:45:05 UTC ++++ mimetype.cpp +@@ -170,7 +170,8 @@ void Quit_MIMEtypes(void) + /* Given a filename, return an appropriate MIME type */ + char * MIME_Type(const char *filename) + { +- char *extension, **type; ++ const char *extension; ++ char **type; + + /* Grab the extension */ + if ( (extension=strrchr(filename, '.')) == NULL ) |