games/warmux: Added a patch for gcc-4.7.x.

Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
This commit is contained in:
ponce 2012-04-01 16:45:31 +02:00 committed by Robby Workman
parent e180c42c14
commit cec74f1c3a
2 changed files with 13 additions and 1 deletions

9
games/warmux/gcc47.patch Normal file
View file

@ -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>

View file

@ -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 \