aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjbeich <jbeich@FreeBSD.org>2017-02-02 04:22:24 +0800
committerjbeich <jbeich@FreeBSD.org>2017-02-02 04:22:24 +0800
commit5041f18b2c08d6b302ef604f8bf2a14de8fdd9f2 (patch)
tree5d297f459feb1c3371b15c21895b19eb6dbb9628
parent57c5b6b236e0712571895058ee64c55e16bd7d4a (diff)
downloadfreebsd-ports-gnome-5041f18b2c08d6b302ef604f8bf2a14de8fdd9f2.tar.gz
freebsd-ports-gnome-5041f18b2c08d6b302ef604f8bf2a14de8fdd9f2.tar.zst
freebsd-ports-gnome-5041f18b2c08d6b302ef604f8bf2a14de8fdd9f2.zip
graphics/yafray: unbreak with libc++ 3.9
src/shaders/basictex.cc:262:8: error: cannot initialize a variable of type 'char *' with an rvalue of type 'const char *' char *ext = strrchr(filename, '.'); ^ ~~~~~~~~~~~~~~~~~~~~~~ Reported by: pkg-fallout
-rw-r--r--graphics/yafray/files/patch-src_shaders_basictex.cc11
1 files changed, 11 insertions, 0 deletions
diff --git a/graphics/yafray/files/patch-src_shaders_basictex.cc b/graphics/yafray/files/patch-src_shaders_basictex.cc
new file mode 100644
index 000000000000..b3bda54813a0
--- /dev/null
+++ b/graphics/yafray/files/patch-src_shaders_basictex.cc
@@ -0,0 +1,11 @@
+--- src/shaders/basictex.cc.orig 2006-06-10 00:41:26 UTC
++++ src/shaders/basictex.cc
+@@ -259,7 +259,7 @@ textureImage_t::textureImage_t(const cha
+ intp_type = BICUBIC;
+
+ // Load image, try to determine from extensions first
+- char *ext = strrchr(filename, '.');
++ const char *ext = strrchr(filename, '.');
+ bool jpg_tried = false;
+ bool tga_tried = false;
+ bool hdr_tried = false;