pkgsrc/security/tct/patches/patch-am
ben 4c8d18d16a Make tct build and run on NetBSD 2.0 and bump PKGREVISION.
This does not add support for ffsv2 filesystems nor superblocks.
This addresses PR#28357.
2005-01-22 15:59:58 +00:00

29 lines
811 B
Text

$NetBSD: patch-am,v 1.2 2005/01/22 15:59:58 ben Exp $
--- src/pcat/pcat.c.orig 2001-09-25 10:22:20.000000000 -0700
+++ src/pcat/pcat.c
@@ -177,6 +177,24 @@
#endif
/*
+ * Based on the OpenBSD code above.
+ */
+#if defined(NETBSD1) || defined(NETBSD2)
+#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.