summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--games/Scorched3D/Scorched3D.SlackBuild5
-rw-r--r--games/Scorched3D/scorched-svn_glibc-2.15_fix.patch12
2 files changed, 16 insertions, 1 deletions
diff --git a/games/Scorched3D/Scorched3D.SlackBuild b/games/Scorched3D/Scorched3D.SlackBuild
index 5d2b87b761..d1d23ab030 100644
--- a/games/Scorched3D/Scorched3D.SlackBuild
+++ b/games/Scorched3D/Scorched3D.SlackBuild
@@ -24,7 +24,7 @@
PRGNAM=Scorched3D
VERSION=43.1c
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@@ -72,6 +72,9 @@ patch -p1 -i $CWD/scorched3d-42.1-fixups.patch
#fix building with libpng14
patch -p0 -i $CWD/scorched3d-43.1c-libpng14.patch
+#fix for glibc-2.15 http://www.scorched3d.co.uk/mantisbt/view.php?id=156
+patch -p1 -i $CWD/scorched-svn_glibc-2.15_fix.patch
+
chmod +x ./autogen.sh
./autogen.sh
diff --git a/games/Scorched3D/scorched-svn_glibc-2.15_fix.patch b/games/Scorched3D/scorched-svn_glibc-2.15_fix.patch
new file mode 100644
index 0000000000..690d51f074
--- /dev/null
+++ b/games/Scorched3D/scorched-svn_glibc-2.15_fix.patch
@@ -0,0 +1,12 @@
+Index: scorched/src/client/client/SecureID.cpp
+===================================================================
+--- scorched/src/client/client/SecureID.cpp (revision 549)
++++ scorched/src/client/client/SecureID.cpp (working copy)
+@@ -75,6 +75,7 @@
+
+ #include <sys/ioctl.h>
+ #include <net/if.h>
++#include <unistd.h>
+
+ std::string SecureID::GetPrivateKey(void)
+ {