[packages/scorched3d] - fix building with gcc 4.7
baggins
baggins at pld-linux.org
Fri Nov 16 14:07:19 CET 2012
commit aaf981e86e78e612817ac55c33532747d81621d0
Author: Jan Rękorajski <baggins at pld-linux.org>
Date: Fri Nov 16 14:07:08 2012 +0100
- fix building with gcc 4.7
scorched3d-gcc47.patch | 11 +++++++++++
scorched3d.spec | 2 ++
2 files changed, 13 insertions(+)
---
diff --git a/scorched3d.spec b/scorched3d.spec
index 436d3d6..447be5c 100644
--- a/scorched3d.spec
+++ b/scorched3d.spec
@@ -11,6 +11,7 @@ Source1: %{name}.desktop
Patch0: %{name}-types.patch
Patch1: %{name}-openal.patch
Patch2: %{name}-libpng15.patch
+Patch3: %{name}-gcc47.patch
URL: http://www.scorched3d.co.uk/
BuildRequires: ImageMagick-coder-png
BuildRequires: OpenAL-devel >= 0.0.8
@@ -54,6 +55,7 @@ rm -rf scorched-dep-osx scorched
%patch0 -p1
%patch1 -p1
%patch2 -p1
+%patch3 -p1
%build
%{__aclocal}
diff --git a/scorched3d-gcc47.patch b/scorched3d-gcc47.patch
new file mode 100644
index 0000000..570284f
--- /dev/null
+++ b/scorched3d-gcc47.patch
@@ -0,0 +1,11 @@
+diff -ur scorched3d-43.3.orig/src/client/client/SecureID.cpp scorched3d-43.3/src/client/client/SecureID.cpp
+--- scorched3d-43.3.orig/src/client/client/SecureID.cpp 2010-07-20 02:28:59.000000000 +0200
++++ scorched3d-43.3/src/client/client/SecureID.cpp 2012-11-16 13:38:27.545520369 +0100
+@@ -75,6 +75,7 @@
+
+ #include <sys/ioctl.h>
+ #include <net/if.h>
++#include <unistd.h>
+
+ std::string SecureID::GetPrivateKey(void)
+ {
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/scorched3d.git/commitdiff/aaf981e86e78e612817ac55c33532747d81621d0
More information about the pld-cvs-commit
mailing list