]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Define _KERNTYPES in vax-bsd-nat.c
authorKamil Rytarowski <n54@gmx.com>
Sat, 14 Mar 2020 11:20:01 +0000 (12:20 +0100)
committerKamil Rytarowski <n54@gmx.com>
Sat, 14 Mar 2020 11:20:01 +0000 (12:20 +0100)
Fixes build on NetBSD. types.h does not define register_t by default.

gdb/ChangeLog:

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

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

index a4ed994440707e401e559afbfc8ca9afecce2c8e..08786335f5fc87119c93d6ff61ba7d32eb6827c5 100644 (file)
@@ -1,3 +1,8 @@
+2020-03-14  Kamil Rytarowski  <n54@gmx.com>
+
+       * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
+       register_t.
+
 2020-03-13  Tom Tromey  <tom@tromey.com>
 
        * value.h (val_print): Don't declare.
index 899f3e3ed9cedb79d352d25024b9c3ee10784c24..652f335c1cc7c063d23d71afab3f33d451f4c856 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"