Define _KERNTYPES in mips-nbsd-nat.c
authorKamil Rytarowski <n54@gmx.com>
Sat, 14 Mar 2020 11:54:47 +0000 (12:54 +0100)
committerKamil Rytarowski <n54@gmx.com>
Sat, 14 Mar 2020 11:54:47 +0000 (12:54 +0100)
Fixes build on NetBSD. types.h does not define register_t by default.

gdb/ChangeLog:

* mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
register_t.

gdb/ChangeLog
gdb/mips-nbsd-nat.c

index 5b757d9a93d945c5f085a13167c7aff1a1178ee3..a0300cce9f9bcedbf71e07fc5ea2808f256a9f61 100644 (file)
@@ -1,3 +1,8 @@
+2020-03-14  Kamil Rytarowski  <n54@gmx.com>
+
+       * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
+       register_t.
+
 2020-03-14  Kamil Rytarowski  <n54@gmx.com>
 
        * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
index 527c67a7abc567cf045ec8d23635adafefca1c38..461304a7e6c33f244c76d63dcfeaae239882c6a0 100644 (file)
@@ -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"
This page took 0.028733 seconds and 4 git commands to generate.