From 9e54223404b8d416d9911b64adc94911083df729 Mon Sep 17 00:00:00 2001 From: jbeich Date: Wed, 1 Feb 2017 20:21:56 +0000 Subject: www/squidpurge: unbreak with libc++ 3.9 copyout.cc:135:9: error: cannot initialize a variable of type 'char *' with an rvalue of type 'const char *' char* ptr = strstr( url, "://" ); ^ ~~~~~~~~~~~~~~~~~~~~ Reported by: pkg-fallout --- www/squidpurge/files/patch-copyout.cc | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 www/squidpurge/files/patch-copyout.cc (limited to 'www/squidpurge') diff --git a/www/squidpurge/files/patch-copyout.cc b/www/squidpurge/files/patch-copyout.cc new file mode 100644 index 000000000000..d3a5a7d69e9b --- /dev/null +++ b/www/squidpurge/files/patch-copyout.cc @@ -0,0 +1,11 @@ +--- copyout.cc.orig 2000-09-21 13:05:31 UTC ++++ copyout.cc +@@ -132,7 +132,7 @@ copy_out( size_t filesize, size_t metasi + static const char* index = "index.html"; + + // find hostname part after the scheme (okok, not counting port, etc.) +- char* ptr = strstr( url, "://" ); ++ const char* ptr = strstr( url, "://" ); + if ( ptr == 0 || strlen(ptr) < 4 ) return false; + + // create filename to store contents into -- cgit