pkgsrc/devel/gdb6/patches/patch-an
rillig 82819a45b8 Made gdb build again on NetBSD-current. The cause was that <sys/vmparam.h>
uses kmutex_t, but doesn't include <sys/mutex.h>, where it is defined.
2008-01-06 19:54:46 +00:00

21 lines
538 B
Text

$NetBSD: patch-an,v 1.2 2008/01/06 19:54:46 rillig Exp $
--- gdb/config/i386/nm-nbsd.h.orig 2004-02-22 16:20:22.000000000 +0000
+++ gdb/config/i386/nm-nbsd.h 2008-01-06 20:43:25.000000000 +0000
@@ -23,7 +23,16 @@
#ifndef NM_NBSD_H
#define NM_NBSD_H
+#include <sys/param.h>
+
/* Get generic NetBSD native definitions. */
#include "config/nm-nbsd.h"
+#include <sys/lock.h>
+#if __NetBSD_Version__ >= 499000900
+#include <sys/mutex.h>
+#endif
+#include <machine/vmparam.h>
+#define KERNEL_U_ADDR USRSTACK
+
#endif /* nm-nbsd.h */