summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Seifert <soap@gentoo.org>2020-08-27 00:07:19 +0200
committerDavid Seifert <soap@gentoo.org>2020-08-27 00:07:19 +0200
commit54e123ebc9020f0ae7c93dd972ad970049ad38c7 (patch)
tree95788ff2d8789d2bb9e65c1799638bc1d1c70158 /games-board/xgammon/files
parentapp-arch/gzip: stable 1.10 for ppc/ppc64 (diff)
downloadgentoo-54e123ebc9020f0ae7c93dd972ad970049ad38c7.tar.gz
gentoo-54e123ebc9020f0ae7c93dd972ad970049ad38c7.tar.bz2
gentoo-54e123ebc9020f0ae7c93dd972ad970049ad38c7.zip
games-board/xgammon: Fix building against glibc 2.32
Closes: https://bugs.gentoo.org/715452 Package-Manager: Portage-3.0.4, Repoman-3.0.1 Signed-off-by: David Seifert <soap@gentoo.org>
Diffstat (limited to 'games-board/xgammon/files')
-rw-r--r--games-board/xgammon/files/xgammon-0.98-glibc-2.32.patch19
1 files changed, 19 insertions, 0 deletions
diff --git a/games-board/xgammon/files/xgammon-0.98-glibc-2.32.patch b/games-board/xgammon/files/xgammon-0.98-glibc-2.32.patch
new file mode 100644
index 000000000000..538f873b4132
--- /dev/null
+++ b/games-board/xgammon/files/xgammon-0.98-glibc-2.32.patch
@@ -0,0 +1,19 @@
+--- a/save.c
++++ b/save.c
+@@ -20,6 +20,7 @@
+
+ #include <stdio.h>
+ #include <stdlib.h>
++#include <string.h>
+ #include <signal.h>
+ #include <X11/Intrinsic.h>
+
+@@ -142,7 +143,7 @@
+ fclose(save_file);
+
+ #ifndef AIX
+- fprintf (stderr, "xgammon: %s. Sorry and bye!\n", sys_siglist[n]);
++ fprintf (stderr, "xgammon: %s. Sorry and bye!\n", strsignal(n));
+ #else
+ fprintf (stderr, "xgammon: Caught signal %d. Sorry and bye!\n", n);
+ #endif