aboutsummaryrefslogtreecommitdiff
path: root/libraries/SFML/gcc47.patch
blob: 7472b2990291f72a6063e196bf1c7666df72a8c3 (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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
Written by ponce@slackbuilds.org trying to build and fixing wherever necessary

diff -Naur SFML-1.6.orig/include/SFML/System/ResourcePtr.inl SFML-1.6/include/SFML/System/ResourcePtr.inl
--- SFML-1.6.orig/include/SFML/System/ResourcePtr.inl	2010-01-27 14:53:54.000000000 +0100
+++ SFML-1.6/include/SFML/System/ResourcePtr.inl	2012-09-23 19:19:33.736300968 +0200
@@ -22,6 +22,7 @@
 //
 ////////////////////////////////////////////////////////////
 
+#include <unistd.h>
 
 ////////////////////////////////////////////////////////////
 /// Default constructor
diff -Naur SFML-1.6.orig/src/SFML/Audio/Listener.cpp SFML-1.6/src/SFML/Audio/Listener.cpp
--- SFML-1.6.orig/src/SFML/Audio/Listener.cpp	2010-01-27 15:00:19.000000000 +0100
+++ SFML-1.6/src/SFML/Audio/Listener.cpp	2012-09-23 19:23:25.645300966 +0200
@@ -25,6 +25,8 @@
 ////////////////////////////////////////////////////////////
 // Headers
 ////////////////////////////////////////////////////////////
+#include <unistd.h>
+#include <stddef.h>
 #include <SFML/Audio/Listener.hpp>
 #include <SFML/Audio/OpenAL.hpp>
 
diff -Naur SFML-1.6.orig/src/SFML/Audio/Music.cpp SFML-1.6/src/SFML/Audio/Music.cpp
--- SFML-1.6.orig/src/SFML/Audio/Music.cpp	2010-01-27 15:00:19.000000000 +0100
+++ SFML-1.6/src/SFML/Audio/Music.cpp	2012-09-23 19:33:23.931300967 +0200
@@ -25,6 +25,8 @@
 ////////////////////////////////////////////////////////////
 // Headers
 ////////////////////////////////////////////////////////////
+#include <unistd.h>
+#include <stddef.h>
 #include <SFML/Audio/Music.hpp>
 #include <SFML/Audio/OpenAL.hpp>
 #include <SFML/Audio/SoundFile.hpp>
diff -Naur SFML-1.6.orig/src/SFML/Audio/Sound.cpp SFML-1.6/src/SFML/Audio/Sound.cpp
--- SFML-1.6.orig/src/SFML/Audio/Sound.cpp	2010-01-27 15:00:19.000000000 +0100
+++ SFML-1.6/src/SFML/Audio/Sound.cpp	2012-09-23 19:26:57.001300967 +0200
@@ -25,6 +25,8 @@
 ////////////////////////////////////////////////////////////
 // Headers
 ////////////////////////////////////////////////////////////
+#include <unistd.h>
+#include <stddef.h>
 #include <SFML/Audio/Sound.hpp>
 #include <SFML/Audio/SoundBuffer.hpp>
 #include <SFML/Audio/OpenAL.hpp>
diff -Naur SFML-1.6.orig/src/SFML/Audio/SoundBuffer.cpp SFML-1.6/src/SFML/Audio/SoundBuffer.cpp
--- SFML-1.6.orig/src/SFML/Audio/SoundBuffer.cpp	2010-01-27 15:00:19.000000000 +0100
+++ SFML-1.6/src/SFML/Audio/SoundBuffer.cpp	2012-09-23 19:29:59.239300967 +0200
@@ -25,6 +25,8 @@
 ////////////////////////////////////////////////////////////
 // Headers
 ////////////////////////////////////////////////////////////
+#include <unistd.h>
+#include <stddef.h>
 #include <SFML/Audio/SoundBuffer.hpp>
 #include <SFML/Audio/SoundFile.hpp>
 #include <SFML/Audio/Sound.hpp>
diff -Naur SFML-1.6.orig/src/SFML/Audio/SoundBufferRecorder.cpp SFML-1.6/src/SFML/Audio/SoundBufferRecorder.cpp
--- SFML-1.6.orig/src/SFML/Audio/SoundBufferRecorder.cpp	2010-01-27 15:00:19.000000000 +0100
+++ SFML-1.6/src/SFML/Audio/SoundBufferRecorder.cpp	2012-09-23 19:26:17.856300966 +0200
@@ -25,6 +25,8 @@
 ////////////////////////////////////////////////////////////
 // Headers
 ////////////////////////////////////////////////////////////
+#include <unistd.h>
+#include <stddef.h>
 #include <SFML/Audio/SoundBufferRecorder.hpp>
 #include <algorithm>
 #include <iterator>
diff -Naur SFML-1.6.orig/src/SFML/Audio/SoundStream.cpp SFML-1.6/src/SFML/Audio/SoundStream.cpp
--- SFML-1.6.orig/src/SFML/Audio/SoundStream.cpp	2010-03-18 14:14:46.000000000 +0100
+++ SFML-1.6/src/SFML/Audio/SoundStream.cpp	2012-09-23 19:34:43.477300968 +0200
@@ -25,6 +25,8 @@
 ////////////////////////////////////////////////////////////
 // Headers
 ////////////////////////////////////////////////////////////
+#include <unistd.h>
+#include <stddef.h>
 #include <SFML/Audio/SoundStream.hpp>
 #include <SFML/Audio/AudioDevice.hpp>
 #include <SFML/Audio/OpenAL.hpp>
diff -Naur SFML-1.6.orig/src/SFML/Graphics/Font.cpp SFML-1.6/src/SFML/Graphics/Font.cpp
--- SFML-1.6.orig/src/SFML/Graphics/Font.cpp	2010-03-18 14:14:41.000000000 +0100
+++ SFML-1.6/src/SFML/Graphics/Font.cpp	2012-09-23 19:32:06.580300966 +0200
@@ -25,6 +25,8 @@
 ////////////////////////////////////////////////////////////
 // Headers
 ////////////////////////////////////////////////////////////
+#include <unistd.h>
+#include <stddef.h>
 #include <SFML/Graphics/Font.hpp>
 #include <SFML/Graphics/FontLoader.hpp>
 #include <iostream>
diff -Naur SFML-1.6.orig/src/SFML/Graphics/Image.cpp SFML-1.6/src/SFML/Graphics/Image.cpp
--- SFML-1.6.orig/src/SFML/Graphics/Image.cpp	2010-01-27 15:00:05.000000000 +0100
+++ SFML-1.6/src/SFML/Graphics/Image.cpp	2012-09-23 19:22:22.316300968 +0200
@@ -25,6 +25,8 @@
 ////////////////////////////////////////////////////////////
 // Headers
 ////////////////////////////////////////////////////////////
+#include <unistd.h>
+#include <stddef.h>
 #include <SFML/Graphics/Image.hpp>
 #include <SFML/Graphics/ImageLoader.hpp>
 #include <SFML/Graphics/RenderWindow.hpp>
diff -Naur SFML-1.6.orig/src/SFML/Graphics/PostFX.cpp SFML-1.6/src/SFML/Graphics/PostFX.cpp
--- SFML-1.6.orig/src/SFML/Graphics/PostFX.cpp	2010-01-27 15:00:05.000000000 +0100
+++ SFML-1.6/src/SFML/Graphics/PostFX.cpp	2012-09-23 19:25:25.505300968 +0200
@@ -26,6 +26,8 @@
 ////////////////////////////////////////////////////////////
 // Headers
 ////////////////////////////////////////////////////////////
+#include <unistd.h>
+#include <stddef.h>
 #include <SFML/Graphics/PostFX.hpp>
 #include <SFML/Graphics/RenderWindow.hpp>
 #include <SFML/Graphics/GraphicsContext.hpp>
diff -Naur SFML-1.6.orig/src/SFML/Graphics/RenderTarget.cpp SFML-1.6/src/SFML/Graphics/RenderTarget.cpp
--- SFML-1.6.orig/src/SFML/Graphics/RenderTarget.cpp	2010-01-27 15:00:05.000000000 +0100
+++ SFML-1.6/src/SFML/Graphics/RenderTarget.cpp	2012-09-23 19:24:35.953300966 +0200
@@ -25,6 +25,8 @@
 ////////////////////////////////////////////////////////////
 // Headers
 ////////////////////////////////////////////////////////////
+#include <unistd.h>
+#include <stddef.h>
 #include <SFML/Graphics/RenderTarget.hpp>
 #include <SFML/Graphics/Drawable.hpp>
 #include <SFML/Graphics/GraphicsContext.hpp>
diff -Naur SFML-1.6.orig/src/SFML/Graphics/RenderWindow.cpp SFML-1.6/src/SFML/Graphics/RenderWindow.cpp
--- SFML-1.6.orig/src/SFML/Graphics/RenderWindow.cpp	2010-01-27 15:00:05.000000000 +0100
+++ SFML-1.6/src/SFML/Graphics/RenderWindow.cpp	2012-09-23 19:28:40.236300966 +0200
@@ -25,6 +25,8 @@
 ////////////////////////////////////////////////////////////
 // Headers
 ////////////////////////////////////////////////////////////
+#include <unistd.h>
+#include <stddef.h>
 #include <SFML/Graphics/RenderWindow.hpp>
 #include <SFML/Graphics/Drawable.hpp>
 #include <SFML/Graphics/Image.hpp>
diff -Naur SFML-1.6.orig/src/SFML/Graphics/Sprite.cpp SFML-1.6/src/SFML/Graphics/Sprite.cpp
--- SFML-1.6.orig/src/SFML/Graphics/Sprite.cpp	2010-01-27 15:00:05.000000000 +0100
+++ SFML-1.6/src/SFML/Graphics/Sprite.cpp	2012-09-23 19:27:41.924300968 +0200
@@ -25,6 +25,8 @@
 ////////////////////////////////////////////////////////////
 // Headers
 ////////////////////////////////////////////////////////////
+#include <unistd.h>
+#include <stddef.h>
 #include <SFML/Graphics/Sprite.hpp>
 #include <SFML/Graphics/Image.hpp>
 #include <SFML/Graphics/GraphicsContext.hpp>
diff -Naur SFML-1.6.orig/src/SFML/Graphics/String.cpp SFML-1.6/src/SFML/Graphics/String.cpp
--- SFML-1.6.orig/src/SFML/Graphics/String.cpp	2010-01-27 15:00:05.000000000 +0100
+++ SFML-1.6/src/SFML/Graphics/String.cpp	2012-09-23 19:31:08.332300966 +0200
@@ -25,6 +25,8 @@
 ////////////////////////////////////////////////////////////
 // Headers
 ////////////////////////////////////////////////////////////
+#include <unistd.h>
+#include <stddef.h>
 #include <SFML/Graphics/String.hpp>
 #include <SFML/Graphics/Image.hpp>
 #include <SFML/Graphics/GraphicsContext.hpp>
diff -Naur SFML-1.6.orig/src/SFML/Window/Linux/Joystick.cpp SFML-1.6/src/SFML/Window/Linux/Joystick.cpp
--- SFML-1.6.orig/src/SFML/Window/Linux/Joystick.cpp	2010-01-27 15:00:27.000000000 +0100
+++ SFML-1.6/src/SFML/Window/Linux/Joystick.cpp	2012-09-23 19:12:09.461300157 +0200
@@ -27,6 +27,7 @@
 ////////////////////////////////////////////////////////////
 #include <SFML/Window/Joystick.hpp>
 #include <sstream>
+#include <unistd.h>
 
 
 namespace sf