Define _KERNTYPES in m68k-bsd-nat.c
authorKamil Rytarowski <n54@gmx.com>
Sat, 14 Mar 2020 15:49:41 +0000 (16:49 +0100)
committerKamil Rytarowski <n54@gmx.com>
Sat, 14 Mar 2020 15:49:41 +0000 (16:49 +0100)
Fixes build on NetBSD. types.h does not define register_t by default.

gdb/ChangeLog:

* m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
register_t.

gdb/ChangeLog
gdb/m68k-bsd-nat.c

index e4b4e68197750e1a4ddcc73ce059e50eed42f4e7..26429a81a314cc1390be635995f9d9332c986157 100644 (file)
@@ -1,3 +1,8 @@
+2020-03-14  Kamil Rytarowski  <n54@gmx.com>
+
+       * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
+       register_t.
+
 2020-03-14  Kamil Rytarowski  <n54@gmx.com>
 
        * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
index 184b5c25d724723a046bb9c8c2742eaa4f1f96d8..9f0ecf90957a668bd024330fee2ca8ea882298d4 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 "gdbcore.h"
 #include "inferior.h"
This page took 0.039765 seconds and 4 git commands to generate.