From: Mike Frysinger Date: Sun, 7 Nov 2021 00:59:17 +0000 (-0400) Subject: sim: sh: drop errno extern X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=73eef3fc38780753a30954d52b86beb1a281f783;p=binutils-gdb.git sim: sh: drop errno extern This isn't needed on any reasonable target nowadays, and no other source does this, and breaks with some mingw targets, so punt the extern entirely. --- diff --git a/sim/sh/interp.c b/sim/sh/interp.c index c4ac5b3e66b..ce4d6cd7603 100644 --- a/sim/sh/interp.c +++ b/sim/sh/interp.c @@ -879,7 +879,6 @@ trap (SIM_DESC sd, int i, int *regs, unsigned char *insn_ptr, } case 34: { - extern int errno; int perrno = errno; errno = 0;