summaryrefslogtreecommitdiff
path: root/community/dangerdeep/build-fix.patch
blob: f77e07c5a35307dfbd61cb13d6da6d7cf2845a64 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
diff -wbBur dangerdeep-0.3.0/src/bspline_test.cpp dangerdeep-0.3.0.my/src/bspline_test.cpp
--- dangerdeep-0.3.0/src/bspline_test.cpp	2007-06-11 19:16:23.000000000 +0400
+++ dangerdeep-0.3.0.my/src/bspline_test.cpp	2012-10-08 17:33:01.034909571 +0400
@@ -1,6 +1,8 @@
 // some test code for the 2d bsplines!
 #include "bspline.h"
 #include <fstream>
+#include <cstdlib>
+
 using namespace std;
 
 double rnd() { return double(rand())/RAND_MAX; }
diff -wbBur dangerdeep-0.3.0/src/convoy.h dangerdeep-0.3.0.my/src/convoy.h
--- dangerdeep-0.3.0/src/convoy.h	2007-06-11 19:16:23.000000000 +0400
+++ dangerdeep-0.3.0.my/src/convoy.h	2012-10-08 17:33:01.034909571 +0400
@@ -26,6 +26,7 @@
 #include "ai.h"
 #include "vector2.h"
 #include <new>
+#include <memory>
 #include <list>
 class ship;
 
diff -wbBur dangerdeep-0.3.0/src/date.cpp dangerdeep-0.3.0.my/src/date.cpp
--- dangerdeep-0.3.0/src/date.cpp	2007-06-11 19:16:23.000000000 +0400
+++ dangerdeep-0.3.0.my/src/date.cpp	2012-10-08 17:33:01.034909571 +0400
@@ -20,6 +20,8 @@
 // date
 // subsim (C)+(W) Markus Petermann and Thorsten Jordan. SEE LICENSE
 
+#include <stdio.h>
+#include <stdlib.h>
 #include <iomanip>
 #include "date.h"
 #include "texts.h"
diff -wbBur dangerdeep-0.3.0/src/faulthandler.h dangerdeep-0.3.0.my/src/faulthandler.h
--- dangerdeep-0.3.0/src/faulthandler.h	2007-06-11 22:29:30.000000000 +0400
+++ dangerdeep-0.3.0.my/src/faulthandler.h	2012-10-08 17:33:23.264909316 +0400
@@ -50,6 +50,7 @@
 #include <signal.h>
 #include <string>
 #include <sstream>
+#include <unistd.h>
 
 // Note: use --export-dynamic as linker option or you won't get function names here.
 
diff -wbBur dangerdeep-0.3.0/src/filehelper.cpp dangerdeep-0.3.0.my/src/filehelper.cpp
--- dangerdeep-0.3.0/src/filehelper.cpp	2007-06-11 19:16:23.000000000 +0400
+++ dangerdeep-0.3.0.my/src/filehelper.cpp	2012-10-08 17:33:01.034909571 +0400
@@ -23,6 +23,7 @@
 #include "filehelper.h"
 #include "error.h"
 #include <vector>
+#include <stdio.h>
 using namespace std;
 
 #ifdef WIN32
diff -wbBur dangerdeep-0.3.0/src/ocean_wave_generator.h dangerdeep-0.3.0.my/src/ocean_wave_generator.h
--- dangerdeep-0.3.0/src/ocean_wave_generator.h	2007-06-11 19:16:23.000000000 +0400
+++ dangerdeep-0.3.0.my/src/ocean_wave_generator.h	2012-10-08 17:33:01.034909571 +0400
@@ -29,6 +29,7 @@
 #include "environment.h"
 #include <complex>
 #include <vector>
+#include <cstdlib>
 
 // use float fftw (faster) or double (default) ?
 #ifdef WITH_FLOAT_FFTW
diff -wbBur dangerdeep-0.3.0/src/ptrlist.h dangerdeep-0.3.0.my/src/ptrlist.h
--- dangerdeep-0.3.0/src/ptrlist.h	2007-06-11 19:16:23.000000000 +0400
+++ dangerdeep-0.3.0.my/src/ptrlist.h	2012-10-08 17:33:01.034909571 +0400
@@ -25,6 +25,7 @@
 
 #include <list>
 #include <stdexcept>
+#include <memory>
 
 // same as std::list regarding the interface (partly), but handles pointers.
 template <class T>
diff -wbBur dangerdeep-0.3.0/src/ptrvector.h dangerdeep-0.3.0.my/src/ptrvector.h
--- dangerdeep-0.3.0/src/ptrvector.h	2007-06-11 19:16:23.000000000 +0400
+++ dangerdeep-0.3.0.my/src/ptrvector.h	2012-10-08 17:33:01.034909571 +0400
@@ -25,6 +25,7 @@
 
 #include <vector>
 #include <stdexcept>
+#include <memory>
 
 // same as std::vector regarding the interface, but handles pointers.
 template <class T>
diff -wbBur dangerdeep-0.3.0/src/widget.cpp dangerdeep-0.3.0.my/src/widget.cpp
--- dangerdeep-0.3.0/src/widget.cpp	2007-06-11 19:16:23.000000000 +0400
+++ dangerdeep-0.3.0.my/src/widget.cpp	2012-10-08 17:33:01.034909571 +0400
@@ -32,6 +32,8 @@
 #include "datadirs.h"
 #include <set>
 #include <sstream>
+#include <algorithm>
+
 using std::vector;
 using std::list;
 using std::string;