public inbox for gdb-cvs@sourceware.org
help / color / mirror / Atom feed
* [binutils-gdb] Define _KERNTYPES in ppc-nbsd-nat.c
@ 2020-03-14 11:52 Kamil Rytarowski
0 siblings, 0 replies; only message in thread
From: Kamil Rytarowski @ 2020-03-14 11:52 UTC (permalink / raw)
To: gdb-cvs
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=52feded7781821d227db0be188e564698d29fe9e
commit 52feded7781821d227db0be188e564698d29fe9e
Author: Kamil Rytarowski <n54@gmx.com>
Date: Sat Mar 14 12:51:15 2020 +0100
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.
Diff:
---
gdb/ChangeLog | 5 +++++
gdb/ppc-nbsd-nat.c | 2 ++
2 files changed, 7 insertions(+)
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 08786335f5f..5b757d9a93d 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,8 @@
+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
diff --git a/gdb/ppc-nbsd-nat.c b/gdb/ppc-nbsd-nat.c
index a2a0c0b958e..86a20a97329 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>
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-03-14 11:52 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-14 11:52 [binutils-gdb] Define _KERNTYPES in ppc-nbsd-nat.c Kamil Rytarowski
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).