diff options
author | jbeich <jbeich@FreeBSD.org> | 2017-02-02 04:21:01 +0800 |
---|---|---|
committer | jbeich <jbeich@FreeBSD.org> | 2017-02-02 04:21:01 +0800 |
commit | 40990cdc2eedf14b467a6b1c3c2c7be82f8b7a0e (patch) | |
tree | bc2e60418eb63b2361b141203f61bd9ac4ccfb67 | |
parent | 0304ffc00d853a1db366b3c771d7f89985cdab08 (diff) | |
download | freebsd-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.h | 9 |
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; + } + |