Define _KERNTYPES in m68k-bsd-nat.c

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.
This commit is contained in:
Kamil Rytarowski 2020-03-14 16:49:41 +01:00
parent 6def66f140
commit f90280caf5
2 changed files with 7 additions and 0 deletions

View 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

View 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"