Add celestia patch to compile with gcc-4.7
authorHugo Villeneuve <hugo@hugovil.com>
Mon, 8 Dec 2014 14:03:28 +0000 (09:03 -0500)
committerHugo Villeneuve <hugo@hugovil.com>
Sat, 27 Dec 2014 03:26:25 +0000 (22:26 -0500)
stage5/patches/common/celestia-1.6.1-gcc47-fix.patch [new file with mode: 0644]

diff --git a/stage5/patches/common/celestia-1.6.1-gcc47-fix.patch b/stage5/patches/common/celestia-1.6.1-gcc47-fix.patch
new file mode 100644 (file)
index 0000000..fdf2d18
--- /dev/null
@@ -0,0 +1,12 @@
+diff -Naur celestia-1.6.1.orig/src/celmath/intersect.h celestia-1.6.1.new/src/celmath/intersect.h
+--- celestia-1.6.1.orig/src/celmath/intersect.h        2011-06-05 12:11:15.000000000 -0400
++++ celestia-1.6.1.new/src/celmath/intersect.h 2014-12-07 20:16:03.937882223 -0500
+@@ -15,7 +15,7 @@
+ #include "ray.h"
+ #include "sphere.h"
+ #include "ellipsoid.h"
+-
++#include "mathlib.h"
+ template<class T> bool testIntersection(const Ray3<T>& ray,
+                                         const Sphere<T>& sphere,