aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjbeich <jbeich@FreeBSD.org>2017-02-02 04:21:01 +0800
committerjbeich <jbeich@FreeBSD.org>2017-02-02 04:21:01 +0800
commit40990cdc2eedf14b467a6b1c3c2c7be82f8b7a0e (patch)
treebc2e60418eb63b2361b141203f61bd9ac4ccfb67
parent0304ffc00d853a1db366b3c771d7f89985cdab08 (diff)
downloadfreebsd-ports-gnome-40990cdc2eedf14b467a6b1c3c2c7be82f8b7a0e.tar.gz
freebsd-ports-gnome-40990cdc2eedf14b467a6b1c3c2c7be82f8b7a0e.tar.zst
freebsd-ports-gnome-40990cdc2eedf14b467a6b1c3c2c7be82f8b7a0e.zip
converters/fix-mime-charset: unbreak with libc++ 3.9
./argp-local.h:69:7: error: cannot initialize a variable of type 'char *' with an rvalue of type 'const char *' char *p=strrchr(arg,'/'); ^ ~~~~~~~~~~~~~~~~ Reported by: pkg-fallout
-rw-r--r--converters/fix-mime-charset/files/patch-src_argp-local.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/converters/fix-mime-charset/files/patch-src_argp-local.h b/converters/fix-mime-charset/files/patch-src_argp-local.h
index be5ae8c795c4..6742fac1a1f9 100644
--- a/converters/fix-mime-charset/files/patch-src_argp-local.h
+++ b/converters/fix-mime-charset/files/patch-src_argp-local.h
@@ -8,3 +8,12 @@
#define __need_error_t
#include <errno.h>
+@@ -65,7 +65,7 @@ const argp_option _argp_default_options[
+
+ string _argp_progname(const char *arg)
+ {
+-char *p=strrchr(arg,'/');
++const char *p=strrchr(arg,'/');
+ return p==NULL ? arg : p+1;
+ }
+