From 20fe00dcde4226e7223a6c18310e4167e3e803a9 Mon Sep 17 00:00:00 2001 From: claudio Date: Mon, 15 Dec 2025 19:30:08 +0000 Subject: [PATCH] Fix implicit int error with ports-gcc since int is missing for main(). OK phessler@ --- games/maelstrom/Makefile | 2 +- games/maelstrom/patches/patch-Maelstrom-netd_c | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/games/maelstrom/Makefile b/games/maelstrom/Makefile index 507294e07e7..29c70aec025 100644 --- a/games/maelstrom/Makefile +++ b/games/maelstrom/Makefile @@ -2,7 +2,7 @@ COMMENT = asteroid-like game DISTNAME = Maelstrom-3.0.6 PKGNAME = ${DISTNAME:L} -REVISION = 4 +REVISION = 5 CATEGORIES = games x11 HOMEPAGE = http://www.devolution.com/~slouken/Maelstrom/ SITES = ${HOMEPAGE}/src/ diff --git a/games/maelstrom/patches/patch-Maelstrom-netd_c b/games/maelstrom/patches/patch-Maelstrom-netd_c index 6d581c73c0c..47840fc5b29 100644 --- a/games/maelstrom/patches/patch-Maelstrom-netd_c +++ b/games/maelstrom/patches/patch-Maelstrom-netd_c @@ -14,3 +14,12 @@ Index: Maelstrom-netd.c #include /* We wait in a loop for players to connect and tell us how many people +@@ -181,7 +183,7 @@ void I_Crashed(int sig) + exit(sig); + } + +-main(int argc, char *argv[]) ++int main(int argc, char *argv[]) + { + int netfd, i, slot; + struct sockaddr_in serv_addr;