$NetBSD: patch-am,v 1.1.1.1 2002/01/03 10:58:57 agc Exp $

--- src/pcat/pcat.c	2002/01/03 09:55:26	1.1
+++ src/pcat/pcat.c	2002/01/03 09:56:38
@@ -177,6 +177,24 @@
 #endif
 
  /*
+  * Based on the OpenBSD code above.
+  */
+#if defined(NETBSD1)
+#define SUPPORTED
+#include <sys/param.h>
+#include <sys/user.h>
+#include <sys/sysctl.h>
+#include <kvm.h>
+#include <stddef.h>
+#define HAVE_PTRACE_MEM
+#define PTRACE_ATTACH	PT_ATTACH
+#define PTRACE_DETACH	PT_DETACH
+#define PTRACE_PEEKDATA	PT_READ_D
+#define HAVE_BROKEN_CTOB
+#define PTRACE_ARG3_T	caddr_t
+#endif
+
+ /*
   * SunOS 4.x has no /proc, and ptrace() peeking the u area won't give us the
   * process memory segment sizes. Instead we must grope process information
   * from kernel virtual memory. This requires super-user privilege.
