summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'games-action/maelstrom')
-rw-r--r--games-action/maelstrom/files/maelstrom-3.0.6-gcc53.patch11
-rw-r--r--games-action/maelstrom/maelstrom-3.0.6-r2.ebuild5
2 files changed, 14 insertions, 2 deletions
diff --git a/games-action/maelstrom/files/maelstrom-3.0.6-gcc53.patch b/games-action/maelstrom/files/maelstrom-3.0.6-gcc53.patch
new file mode 100644
index 000000000000..db7624bacf91
--- /dev/null
+++ b/games-action/maelstrom/files/maelstrom-3.0.6-gcc53.patch
@@ -0,0 +1,11 @@
+--- Maelstrom-3.0.6/Maelstrom-netd.c.orig 2016-06-04 06:02:44.000000000 +0300
++++ Maelstrom-3.0.6/Maelstrom-netd.c 2016-06-05 13:45:11.422533649 +0300
+@@ -204,7 +204,7 @@
+ memset(&serv_addr, 0, sizeof(serv_addr));
+ serv_addr.sin_family = AF_INET;
+ serv_addr.sin_addr.s_addr = htonl(INADDR_ANY);
+- serv_addr.sin_port = htons(NETPLAY_PORT-1);
++ serv_addr.sin_port = htons(NETPLAY_PORT - 1);
+ if (bind(netfd, (struct sockaddr *)&serv_addr, sizeof(serv_addr)) < 0) {
+ perror("Can't bind local address");
+ exit(3);
diff --git a/games-action/maelstrom/maelstrom-3.0.6-r2.ebuild b/games-action/maelstrom/maelstrom-3.0.6-r2.ebuild
index 32a05bce9e22..ff716e142bec 100644
--- a/games-action/maelstrom/maelstrom-3.0.6-r2.ebuild
+++ b/games-action/maelstrom/maelstrom-3.0.6-r2.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
@@ -26,7 +26,8 @@ src_prepare() {
"${FILESDIR}"/${P}-security.patch \
"${FILESDIR}"/${P}-64bits.patch \
"${FILESDIR}"/${P}-gcc34.patch \
- "${FILESDIR}"/${P}-warnings.patch
+ "${FILESDIR}"/${P}-warnings.patch \
+ "${FILESDIR}"/${P}-gcc53.patch
# Install the data into $(datadir)/..., not $(prefix)/games/...
sed -i \