1 #! /bin/sh /usr/share/dpatch/dpatch-run
2 ## gcc4.3-includes.dpatch by Sebastian Harl <sh@tokkee.org>
3 ##
4 ## DP: This patch adds missing includes required by gcc-4.3.
6 @DPATCH@
8 --- a/src/fileformat/pfsinexr.cpp 2005-06-15 15:36:54.000000000 +0200
9 +++ b/src/fileformat/pfsinexr.cpp 2007-12-26 13:36:04.000000000 +0100
10 @@ -27,6 +27,8 @@
12 #include <config.h>
14 +#include <cstdlib>
15 +
16 #include <iostream>
18 #include <stdio.h>
19 --- a/src/fileformat/pfsinppm.cpp 2007-02-09 14:19:26.000000000 +0100
20 +++ b/src/fileformat/pfsinppm.cpp 2007-12-26 13:34:39.000000000 +0100
21 @@ -28,6 +28,8 @@
23 #include <config.h>
25 +#include <cstdlib>
26 +
27 #include <iostream>
29 #include <getopt.h>
30 --- a/src/fileformat/pfsinrgbe.cpp 2006-11-06 17:39:13.000000000 +0100
31 +++ b/src/fileformat/pfsinrgbe.cpp 2007-12-26 13:33:52.000000000 +0100
32 @@ -28,6 +28,8 @@
34 #include <config.h>
36 +#include <cstdlib>
37 +
38 #include <iostream>
40 #include <getopt.h>
41 --- a/src/fileformat/pfsintiff.cpp 2007-04-03 10:30:23.000000000 +0200
42 +++ b/src/fileformat/pfsintiff.cpp 2007-12-26 13:35:19.000000000 +0100
43 @@ -27,6 +27,8 @@
45 #include <config.h>
47 +#include <cstdlib>
48 +
49 #include <iostream>
51 #include <getopt.h>
52 --- a/src/fileformat/pfsoutexr.cpp 2005-07-18 17:47:17.000000000 +0200
53 +++ b/src/fileformat/pfsoutexr.cpp 2007-12-26 13:36:28.000000000 +0100
54 @@ -28,6 +28,8 @@
56 #include <config.h>
58 +#include <cstdlib>
59 +
60 #include <iostream>
62 #include <stdio.h>
63 --- a/src/fileformat/pfsoutppm.cpp 2005-06-15 15:36:54.000000000 +0200
64 +++ b/src/fileformat/pfsoutppm.cpp 2007-12-26 13:34:59.000000000 +0100
65 @@ -28,6 +28,8 @@
67 #include <config.h>
69 +#include <cstdlib>
70 +
71 #include <iostream>
73 #include <getopt.h>
74 --- a/src/fileformat/pfsoutrgbe.cpp 2005-06-15 15:36:54.000000000 +0200
75 +++ b/src/fileformat/pfsoutrgbe.cpp 2007-12-26 13:34:14.000000000 +0100
76 @@ -28,6 +28,8 @@
78 #include <config.h>
80 +#include <cstdlib>
81 +
82 #include <iostream>
84 #include <getopt.h>
85 --- a/src/fileformat/pfsouttiff.cpp 2005-06-15 15:36:54.000000000 +0200
86 +++ b/src/fileformat/pfsouttiff.cpp 2007-12-26 13:35:42.000000000 +0100
87 @@ -27,6 +27,8 @@
89 #include <config.h>
91 +#include <cstdlib>
92 +
93 #include <iostream>
95 #include <getopt.h>
96 --- a/src/filter/pfscat.cpp 2005-06-15 15:36:54.000000000 +0200
97 +++ b/src/filter/pfscat.cpp 2007-12-26 13:45:47.000000000 +0100
98 @@ -25,6 +25,7 @@
99 */
101 #include <pfs.h>
102 +#include <climits>
103 #include <iostream>
104 #include <getopt.h>
105 #include <fcntl.h>
106 --- a/src/filter/pfscut.cpp 2006-08-18 02:31:24.000000000 +0200
107 +++ b/src/filter/pfscut.cpp 2007-12-26 13:45:18.000000000 +0100
108 @@ -25,6 +25,8 @@
109 */
111 #include <pfs.h>
112 +#include <climits>
113 +#include <cstdlib>
114 #include <iostream>
115 #include <getopt.h>
117 --- a/src/filter/pfspad.cpp 2005-06-15 15:36:54.000000000 +0200
118 +++ b/src/filter/pfspad.cpp 2007-12-26 13:44:57.000000000 +0100
119 @@ -26,6 +26,8 @@
122 #include <pfs.h>
123 +#include <climits>
124 +#include <cstdlib>
125 #include <iostream>
126 #include <getopt.h>
128 --- a/src/pfs/pfs.cpp 2006-11-06 17:39:15.000000000 +0100
129 +++ b/src/pfs/pfs.cpp 2007-12-26 13:32:38.000000000 +0100
130 @@ -36,6 +36,8 @@
131 #define HAVE_SETMODE
132 #endif
134 +#include <cstdlib>
135 +
136 #include <fcntl.h>
138 #include <string.h>