gentoo-ebuilds/games-sports/foobillard/files/foobillard-3.0a-c99.patch
Alexey Sokolov 848fe15016
games-sports/foobillard: update EAPI 7 -> 8
Fix build with gcc 15

Closes: https://bugs.gentoo.org/946901
Closes: https://bugs.gentoo.org/884917
Closes: https://bugs.gentoo.org/875497
Closes: https://bugs.gentoo.org/831494
Signed-off-by: Alexey Sokolov <alexey+gentoo@asokolov.org>
Signed-off-by: Sam James <sam@gentoo.org>
2025-02-09 01:38:47 +00:00

14 lines
350 B
Diff

Avoid an implicit int to improve compatibility with future compilers.
Borrowed from https://src.fedoraproject.org/rpms/foobillard/blob/f41/f/foobillard-c99.patch
--- a/src/billmove.c
+++ b/src/billmove.c
@@ -409,7 +409,7 @@ void record_move_log_event( enum event_type event,
}
-int my_rand(nr)
+int my_rand(int nr)
{
return rand()%nr;
}