aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorKamil Rytarowski <n54@gmx.com>2020-03-14 12:51:15 +0100
committerKamil Rytarowski <n54@gmx.com>2020-03-14 12:51:15 +0100
commit52feded7781821d227db0be188e564698d29fe9e (patch)
treeba8f3fb0bd9b9ac47d24214d47ac5172fafb1fdb /gdb
parent25567eeece4efdea99a9a2b3a6daf81ec31b4b07 (diff)
downloadgdb-52feded7781821d227db0be188e564698d29fe9e.zip
gdb-52feded7781821d227db0be188e564698d29fe9e.tar.gz
gdb-52feded7781821d227db0be188e564698d29fe9e.tar.bz2
Define _KERNTYPES in ppc-nbsd-nat.c
Fixes build on NetBSD. types.h does not define register_t by default. gdb/ChangeLog: * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of register_t.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/ppc-nbsd-nat.c2
2 files changed, 7 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 0878633..5b757d9 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,10 @@
2020-03-14 Kamil Rytarowski <n54@gmx.com>
+ * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
+ register_t.
+
+2020-03-14 Kamil Rytarowski <n54@gmx.com>
+
* vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
register_t.
diff --git a/gdb/ppc-nbsd-nat.c b/gdb/ppc-nbsd-nat.c
index a2a0c0b..86a20a9 100644
--- a/gdb/ppc-nbsd-nat.c
+++ b/gdb/ppc-nbsd-nat.c
@@ -19,6 +19,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 <sys/types.h>