/[gentoo-x86]/media-gfx/yafray/files/yafray-0.0.9-gcc43.patch
Gentoo

Contents of /media-gfx/yafray/files/yafray-0.0.9-gcc43.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Tue Apr 29 15:00:20 2008 UTC (6 years, 7 months ago) by drac
Branch: MAIN
CVS Tags: HEAD
Fix building with GCC 4.3 wrt #219648, thanks to Peter Alfredsen.
(Portage version: 2.1.5_rc6)

1 #! /bin/sh /usr/share/dpatch/dpatch-run
2 ## 30_gcc4.3_missing_includes.dpatch by Cyril Brulebois <cyril.brulebois@enst-bretagne.fr>
3 ##
4 ## All lines beginning with `## DP:' are a description of the patch.
5 ## DP: Add missing includes to fix FTBFS with gcc 4.3
6
7 @DPATCH@
8
9 --- a/src/yafraycore/HDR_io.cc 2007-12-21 02:04:16.000000000 +0100
10 +++ b/src/yafraycore/HDR_io.cc 2007-12-21 02:04:23.000000000 +0100
11 @@ -9,6 +9,8 @@
12 #include<config.h>
13 #endif
14
15 +#include <cstring>
16 +
17 __BEGIN_YAFRAY
18
19 //---------------------------------------------------------------------------
20 --- a/src/yafraycore/buffer.h 2007-12-21 02:03:39.000000000 +0100
21 +++ b/src/yafraycore/buffer.h 2007-12-21 02:03:48.000000000 +0100
22 @@ -29,6 +29,7 @@
23
24 #include <cstdio>
25 #include <iostream>
26 +#include <cstdlib>
27 #include "color.h"
28
29 __BEGIN_YAFRAY
30 --- a/src/yafraycore/ccthreads.cc 2007-12-21 02:05:02.000000000 +0100
31 +++ b/src/yafraycore/ccthreads.cc 2007-12-21 02:05:12.000000000 +0100
32 @@ -1,5 +1,6 @@
33 #include"ccthreads.h"
34 #include<iostream>
35 +#include<cstdlib>
36
37 using namespace std;
38
39 --- a/src/yafraycore/geometree.h 2007-12-21 02:09:40.000000000 +0100
40 +++ b/src/yafraycore/geometree.h 2007-12-21 02:09:46.000000000 +0100
41 @@ -2,6 +2,7 @@
42 #define __GEOMETREE_H
43
44 #include"bound.h"
45 +#include <limits>
46
47 __BEGIN_YAFRAY
48
49 --- a/src/yafraycore/kdtree.cc 2007-12-21 02:05:55.000000000 +0100
50 +++ b/src/yafraycore/kdtree.cc 2007-12-21 02:06:03.000000000 +0100
51 @@ -4,6 +4,7 @@
52 #include <math.h>
53 #include <limits>
54 #include <time.h>
55 +#include <cstring>
56
57 __BEGIN_YAFRAY
58
59 --- a/src/yafraycore/renderblock.cc 2007-12-21 02:07:41.000000000 +0100
60 +++ b/src/yafraycore/renderblock.cc 2007-12-21 02:07:49.000000000 +0100
61 @@ -1,5 +1,6 @@
62
63 #include "renderblock.h"
64 +#include <cstdlib>
65
66 using namespace std;
67
68 --- a/src/loader/mlex.cc 2007-12-21 02:13:25.000000000 +0100
69 +++ b/src/loader/mlex.cc 2007-12-21 02:13:35.000000000 +0100
70 @@ -22,6 +22,7 @@
71
72 #include<stdio.h>
73 #include<iostream>
74 +#include<cstring>
75 #include "mlex.h"
76 using namespace std;
77 #include<string>
78 --- a/src/shaders/basictex.cc 2007-12-21 02:14:43.000000000 +0100
79 +++ b/src/shaders/basictex.cc 2007-12-21 02:14:52.000000000 +0100
80 @@ -23,6 +23,7 @@
81 #include "basictex.h"
82 #include "object3d.h"
83 #include <iostream>
84 +#include <cstring>
85
86 #include "targaIO.h"
87 #include "HDR_io.h"
88 --- a/src/yafraycore/targaIO.cc 2007-12-21 02:10:53.000000000 +0100
89 +++ b/src/yafraycore/targaIO.cc 2007-12-21 02:11:00.000000000 +0100
90 @@ -3,6 +3,7 @@
91 //--------------------------------------------------------------------------------
92 #include "targaIO.h"
93 #include "vector3d.h"
94 +#include <cstring>
95
96 //--------------------------------------------------------------------------------
97 // Save uncompressed 24 bit targa

  ViewVC Help
Powered by ViewVC 1.1.20