From f90280caf5b34ebd564809a7f66685efc79bbf6d Mon Sep 17 00:00:00 2001 From: Kamil Rytarowski Date: Sat, 14 Mar 2020 16:49:41 +0100 Subject: [PATCH] Define _KERNTYPES in m68k-bsd-nat.c Fixes build on NetBSD. types.h does not define register_t by default. gdb/ChangeLog: * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of register_t. --- gdb/ChangeLog | 5 +++++ gdb/m68k-bsd-nat.c | 2 ++ 2 files changed, 7 insertions(+) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index e4b4e681977..26429a81a31 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2020-03-14 Kamil Rytarowski + + * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of + register_t. + 2020-03-14 Kamil Rytarowski * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass diff --git a/gdb/m68k-bsd-nat.c b/gdb/m68k-bsd-nat.c index 184b5c25d72..9f0ecf90957 100644 --- a/gdb/m68k-bsd-nat.c +++ b/gdb/m68k-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 "gdbcore.h" #include "inferior.h" -- 2.30.2