summaryrefslogtreecommitdiffstats
path: root/graphics/rayshade
diff options
context:
space:
mode:
authorpav <pav@FreeBSD.org>2007-02-07 17:41:40 +0000
committerpav <pav@FreeBSD.org>2007-02-07 17:41:40 +0000
commit1e9c24895f58ad24a0d898ec54f0aa0857e8318c (patch)
treee2f676cd68da6921ecb906fb072fc2bd1af920b8 /graphics/rayshade
parent5fb343e56b4fef3551812684ea1255e0888b91d7 (diff)
downloadFreeBSD-ports-1e9c24895f58ad24a0d898ec54f0aa0857e8318c.zip
FreeBSD-ports-1e9c24895f58ad24a0d898ec54f0aa0857e8318c.tar.gz
- Fix build with gcc4
Diffstat (limited to 'graphics/rayshade')
-rw-r--r--graphics/rayshade/files/patch-extended.c11
-rw-r--r--graphics/rayshade/files/patch-fog.c10
-rw-r--r--graphics/rayshade/files/patch-fogdeck.c10
-rw-r--r--graphics/rayshade/files/patch-hf.c11
4 files changed, 42 insertions, 0 deletions
diff --git a/graphics/rayshade/files/patch-extended.c b/graphics/rayshade/files/patch-extended.c
new file mode 100644
index 0000000..a5ac830
--- /dev/null
+++ b/graphics/rayshade/files/patch-extended.c
@@ -0,0 +1,11 @@
+--- libray/liblight/extended.c.orig Mon Feb 10 04:03:43 1992
++++ libray/liblight/extended.c Wed Feb 7 18:34:20 2007
+@@ -54,7 +54,7 @@
+ /*
+ * Compute intensity ('color') of extended light source 'lp' from 'pos'.
+ */
+-static int
++int
+ ExtendedIntens(lp, lcolor, cache, ray, dist, noshadow, color)
+ Extended *lp;
+ Color *lcolor, *color;
diff --git a/graphics/rayshade/files/patch-fog.c b/graphics/rayshade/files/patch-fog.c
new file mode 100644
index 0000000..cdcd084
--- /dev/null
+++ b/graphics/rayshade/files/patch-fog.c
@@ -0,0 +1,10 @@
+--- libray/libsurf/fog.c.orig Mon Feb 10 04:03:33 1992
++++ libray/libsurf/fog.c Wed Feb 7 18:36:49 2007
+@@ -28,7 +28,6 @@
+ Color *color, *trans;
+ {
+ Fog *fog;
+- static void ComputeFog();
+
+ fog = (Fog *)Malloc(sizeof(Fog));
+
diff --git a/graphics/rayshade/files/patch-fogdeck.c b/graphics/rayshade/files/patch-fogdeck.c
new file mode 100644
index 0000000..58a165b
--- /dev/null
+++ b/graphics/rayshade/files/patch-fogdeck.c
@@ -0,0 +1,10 @@
+--- libray/libsurf/fogdeck.c.orig Mon Feb 10 04:03:45 1992
++++ libray/libsurf/fogdeck.c Wed Feb 7 18:37:51 2007
+@@ -31,7 +31,6 @@
+ Color *color, *trans;
+ {
+ Fogdeck *fogdeck;
+- static void ComputeFogdeck();
+
+ fogdeck = (Fogdeck *)Malloc(sizeof(Fogdeck));
+
diff --git a/graphics/rayshade/files/patch-hf.c b/graphics/rayshade/files/patch-hf.c
new file mode 100644
index 0000000..eb64a4c
--- /dev/null
+++ b/graphics/rayshade/files/patch-hf.c
@@ -0,0 +1,11 @@
+--- libray/libobj/hf.c.orig Mon Feb 10 04:04:18 1992
++++ libray/libobj/hf.c Wed Feb 7 18:27:10 2007
+@@ -42,7 +42,7 @@
+ Vector cp, pDX, pDY;
+ } Trav2D;
+
+-hfTri *CreateHfTriangle(), *GetQueuedTri();
++static hfTri *CreateHfTriangle(), *GetQueuedTri();
+
+ unsigned long HFTests, HFHits;
+
OpenPOWER on IntegriCloud