aboutsummaryrefslogtreecommitdiff
path: root/gdb/vax-bsd-nat.c
diff options
context:
space:
mode:
authorKamil Rytarowski <n54@gmx.com>2020-03-14 12:20:01 +0100
committerKamil Rytarowski <n54@gmx.com>2020-03-14 12:20:01 +0100
commit25567eeece4efdea99a9a2b3a6daf81ec31b4b07 (patch)
treec117e8e72cc1fb7d26752acfa3a28d4172f502de /gdb/vax-bsd-nat.c
parent8b5d0a4f6ff67aa81275c705508e3f49accc8120 (diff)
downloadgdb-25567eeece4efdea99a9a2b3a6daf81ec31b4b07.zip
gdb-25567eeece4efdea99a9a2b3a6daf81ec31b4b07.tar.gz
gdb-25567eeece4efdea99a9a2b3a6daf81ec31b4b07.tar.bz2
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.
Diffstat (limited to 'gdb/vax-bsd-nat.c')
-rw-r--r--gdb/vax-bsd-nat.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gdb/vax-bsd-nat.c b/gdb/vax-bsd-nat.c
index 899f3e3..652f335 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 <http://www.gnu.org/licenses/>. */
+/* We define this to get types like register_t. */
+#define _KERNTYPES
#include "defs.h"
#include "inferior.h"
#include "regcache.h"