From: Kamil Rytarowski Date: Sat, 14 Mar 2020 11:54:47 +0000 (+0100) Subject: Define _KERNTYPES in mips-nbsd-nat.c X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8110f842bc52940d27b6f1e8e5ab711238d9d210;p=binutils-gdb.git Define _KERNTYPES in mips-nbsd-nat.c Fixes build on NetBSD. types.h does not define register_t by default. gdb/ChangeLog: * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of register_t. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 5b757d9a93d..a0300cce9f9 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2020-03-14 Kamil Rytarowski + + * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of + register_t. + 2020-03-14 Kamil Rytarowski * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of diff --git a/gdb/mips-nbsd-nat.c b/gdb/mips-nbsd-nat.c index 527c67a7abc..461304a7e6c 100644 --- a/gdb/mips-nbsd-nat.c +++ b/gdb/mips-nbsd-nat.c @@ -17,6 +17,8 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . */ +/* We define this to get types like register_t. */ +#define _KERNTYPES #include "defs.h" #include "inferior.h" #include "regcache.h"