summaryrefslogtreecommitdiff
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
parent8b5d0a4f6ff67aa81275c705508e3f49accc8120 (diff)
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.
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/vax-bsd-nat.c2
2 files changed, 7 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index a4ed994440..08786335f5 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,8 @@
+2020-03-14 Kamil Rytarowski <n54@gmx.com>
+
+ * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
+ register_t.
+
2020-03-13 Tom Tromey <tom@tromey.com>
* value.h (val_print): Don't declare.
diff --git a/gdb/vax-bsd-nat.c b/gdb/vax-bsd-nat.c
index 899f3e3ed9..652f335c1c 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"