Skip to content

Commit

Permalink
app-emulation/ski: tweak for gcc-10
Browse files Browse the repository at this point in the history
Reported-by: Toralf Förster
Closes: https://bugs.gentoo.org/707144
Package-Manager: Portage-2.3.86, Repoman-2.3.20
Signed-off-by: Sergei Trofimovich <[email protected]>
  • Loading branch information
Sergei Trofimovich committed Jan 29, 2020
1 parent 3d9a4a3 commit 8c07d20
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 1 deletion.
22 changes: 22 additions & 0 deletions app-emulation/ski/files/ski-1.3.2-gcc-10.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
--- a/src/linux/syscall-linux.c
+++ b/src/linux/syscall-linux.c
@@ -538,7 +538,7 @@ pid_t cons_pid = -1;
static int cfd = -1;
BOOL trace_syscalls;
char *consLog = NULL;
-extern BOOL noConsole;
+BOOL noConsole;
extern BOOL userint;
static struct termios sane_ttyIos;

--- a/src/platform.c
+++ b/src/platform.c
@@ -29,7 +29,7 @@
#include "platform.h"
#include "state.h"

-BOOL autoAlloc, noConsole;
+extern BOOL autoAlloc, noConsole;
extern char *consLog;
extern unsigned va_len, pa_len, rid_len, key_len;
extern unsigned mips;
3 changes: 2 additions & 1 deletion app-emulation/ski/ski-1.3.2-r3.ebuild
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 1999-2019 Gentoo Authors
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=6
Expand Down Expand Up @@ -38,6 +38,7 @@ PATCHES=(
"${FILESDIR}"/${P}-ncurses-config.patch
"${FILESDIR}"/${P}-prototypes.patch
"${FILESDIR}"/${P}-glibc-2.28.patch
"${FILESDIR}"/${P}-gcc-10.patch #707144
)

src_prepare() {
Expand Down

0 comments on commit 8c07d20

Please sign in to comment.