summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--games/warmux/gcc47.patch9
-rw-r--r--games/warmux/warmux.SlackBuild5
2 files changed, 13 insertions, 1 deletions
diff --git a/games/warmux/gcc47.patch b/games/warmux/gcc47.patch
new file mode 100644
index 0000000000..e51801a369
--- /dev/null
+++ b/games/warmux/gcc47.patch
@@ -0,0 +1,9 @@
+diff -Naur warmux-11.04.orig/tools/list_games/main.cpp warmux-11.04/tools/list_games/main.cpp
+--- warmux-11.04.orig/tools/list_games/main.cpp 2011-04-28 21:03:12.000000000 +0200
++++ warmux-11.04/tools/list_games/main.cpp 2012-04-01 10:03:27.752999997 +0200
+@@ -1,4 +1,5 @@
+ #include <stdio.h>
++#include <unistd.h>
+ #include <WARMUX_types.h>
+ #include <WARMUX_network.h>
+ #include <WARMUX_index_server.h>
diff --git a/games/warmux/warmux.SlackBuild b/games/warmux/warmux.SlackBuild
index a271f56852..ec9ca06c59 100644
--- a/games/warmux/warmux.SlackBuild
+++ b/games/warmux/warmux.SlackBuild
@@ -27,7 +27,7 @@
PRGNAM=warmux
VERSION=11.04.1
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@@ -68,6 +68,9 @@ cd $PRGNAM-11.04
chown -R root:root .
chmod -R a-s,u+w,go+r-w .
+# Fix building with gcc-4.7.x
+patch -p1 < $CWD/gcc47.patch
+
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \