From: Kamil Rytarowski Date: Sat, 14 Mar 2020 11:20:01 +0000 (+0100) Subject: Define _KERNTYPES in vax-bsd-nat.c X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=25567eeece4efdea99a9a2b3a6daf81ec31b4b07;p=binutils-gdb.git Define _KERNTYPES in vax-bsd-nat.c Fixes build on NetBSD. types.h does not define register_t by default. gdb/ChangeLog: * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of register_t. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index a4ed9944407..08786335f5f 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2020-03-14 Kamil Rytarowski + + * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of + register_t. + 2020-03-13 Tom Tromey * value.h (val_print): Don't declare. diff --git a/gdb/vax-bsd-nat.c b/gdb/vax-bsd-nat.c index 899f3e3ed9c..652f335c1cc 100644 --- a/gdb/vax-bsd-nat.c +++ b/gdb/vax-bsd-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"