gentoo-ebuilds/games-puzzle/galaxis/files/galaxis-1.10-c2x.patch
Ionen Wolkens d74ba779a8
games-puzzle/galaxis: add 1.10
Release fixed issues with clang16 3 years ago wrt #874435

Also:
* GPL-2 -> BSD-2 (no GPL in here)
* pass ncurses' --cflags too
* install the newly added .desktop+icon
* small fixes for c2x so won't need -std=gnu89

Closes: https://bugs.gentoo.org/874435
Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
2022-10-15 16:06:46 -04:00

15 lines
318 B
Diff

Early fixes for upcoming C2x.
--- a/galaxis.c
+++ b/galaxis.c
@@ -32,4 +32,2 @@
#define rand() lrand48()
-extern long lrand48();
-extern void srand48();
#define bzero(s, n) (void)memset((char *)(s), '\0', n)
@@ -648,5 +646,3 @@
-int main(argc, argv)
-int argc;
-char *argv[];
+int main(int argc, char *argv[])
{