aboutsummaryrefslogtreecommitdiff
path: root/games/speed-dreams/gcc47.patch
diff options
context:
space:
mode:
authorpowtrix <powtrix@gmail.com>2012-03-30 18:33:00 -0500
committerErik Hanson <erik@slackbuilds.org>2012-03-30 18:33:00 -0500
commitd678ba8f82860c19d588245e86c55288f5869587 (patch)
tree7afaa7b1787033f036140f062de06b544bc1bcc7 /games/speed-dreams/gcc47.patch
parenteb5acc1ee87ff37d54af4d251d99601bd217d6a5 (diff)
games/speed-dreams: Updated for version 2.0.0_rc1_r4420
Signed-off-by: Erik Hanson <erik@slackbuilds.org>
Diffstat (limited to 'games/speed-dreams/gcc47.patch')
-rw-r--r--games/speed-dreams/gcc47.patch28
1 files changed, 28 insertions, 0 deletions
diff --git a/games/speed-dreams/gcc47.patch b/games/speed-dreams/gcc47.patch
new file mode 100644
index 0000000000000..ee5e3d58424ad
--- /dev/null
+++ b/games/speed-dreams/gcc47.patch
@@ -0,0 +1,28 @@
+Fixes #645 & #646 (GCC 4.7 compatibility)
+
+--- src/libs/math/v3_t.h.orig 2012-03-30 18:09:00.697957753 -0500
++++ src/libs/math/v3_t.h 2012-03-30 18:09:15.421679640 -0500
+@@ -28,6 +28,7 @@
+ #ifndef _LINALG_V3_T_H_
+ #define _LINALG_V3_T_H_
+
++#include <cmath>
+
+ template<class T> class v3t;
+ #ifndef _MSC_VER
+--- src/libs/portability/portability.h.orig 2012-03-30 18:03:35.047110686 -0500
++++ src/libs/portability/portability.h 2012-03-30 18:10:19.171475549 -0500
+@@ -22,10 +22,13 @@
+
+ #include <cstdlib>
+ #include <cstring>
++
+ #ifdef _MSC_VER
+ #include <direct.h>
+ #include <process.h>
+ #define _WINSOCKAPI_ /* Prevent inclusion of winsock.h in windows.h */
++#else
++#include <unistd.h>
+ #endif
+
+ #ifdef _MSC_VER