Define _KERNTYPES in ppc-nbsd-nat.c
authorKamil Rytarowski <n54@gmx.com>
Sat, 14 Mar 2020 11:51:15 +0000 (12:51 +0100)
committerKamil Rytarowski <n54@gmx.com>
Sat, 14 Mar 2020 11:51:15 +0000 (12:51 +0100)
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.

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

index 08786335f5fc87119c93d6ff61ba7d32eb6827c5..5b757d9a93d945c5f085a13167c7aff1a1178ee3 100644 (file)
@@ -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
index a2a0c0b958e9461dedbc0a593dfa2c914d1d3baa..86a20a97329db314aa3fc82454701c0efb7bab56 100644 (file)
@@ -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>
This page took 0.038533 seconds and 4 git commands to generate.