commit:     ea8374a3df64f104d82356c889b7f58a91ebb3d9
Author:     Takuya Wakazono <pastalian46 <AT> gmail <DOT> com>
AuthorDate: Sun Mar 30 05:01:53 2025 +0000
Commit:     David Roman <davidroman96 <AT> gmail <DOT> com>
CommitDate: Sun Mar 30 12:47:09 2025 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=ea8374a3

games-action/netrek-cow: don't build with C23

Incompatible function declarations under C23.
https://github.com/quozl/netrek-client-cow/issues/10

Closes: https://bugs.gentoo.org/945213
Signed-off-by: Takuya Wakazono <pastalian46 <AT> gmail.com>

 games-action/netrek-cow/netrek-cow-3.3.2.ebuild | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/games-action/netrek-cow/netrek-cow-3.3.2.ebuild 
b/games-action/netrek-cow/netrek-cow-3.3.2.ebuild
index f5e252233..2b5029da1 100644
--- a/games-action/netrek-cow/netrek-cow-3.3.2.ebuild
+++ b/games-action/netrek-cow/netrek-cow-3.3.2.ebuild
@@ -1,8 +1,8 @@
-# Copyright 1999-2020 Gentoo Authors
+# Copyright 1999-2025 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
-inherit autotools
+inherit autotools flag-o-matic
 
 DESCRIPTION="cow client for netrek"
 HOMEPAGE="https://netrek.org";
@@ -36,6 +36,12 @@ src_prepare() {
        eautoreconf
 }
 
+src_configure() {
+       # Incompatible function declarations under C23. Bug #945213
+       append-cflags -std=gnu17
+       default
+}
+
 src_install() {
        dobin netrek-client-cow
 }

Reply via email to