Fixup fromcvs/togit conversion
[minix-pkgsrc.git] / security / tct / patches / patch-am
blob586ff8576c76407e66f9a4b8cfa8c8872e34ccbc
1 $NetBSD$
3 --- src/pcat/pcat.c.orig        2001-09-25 10:22:20.000000000 -0700
4 +++ src/pcat/pcat.c
5 @@ -177,6 +177,24 @@
6  #endif
7  
8   /*
9 +  * Based on the OpenBSD code above.
10 +  */
11 +#if defined(NETBSD1) || defined(NETBSD2)
12 +#define SUPPORTED
13 +#include <sys/param.h>
14 +#include <sys/user.h>
15 +#include <sys/sysctl.h>
16 +#include <kvm.h>
17 +#include <stddef.h>
18 +#define HAVE_PTRACE_MEM
19 +#define PTRACE_ATTACH  PT_ATTACH
20 +#define PTRACE_DETACH  PT_DETACH
21 +#define PTRACE_PEEKDATA        PT_READ_D
22 +#define HAVE_BROKEN_CTOB
23 +#define PTRACE_ARG3_T  caddr_t
24 +#endif
26 + /*
27    * SunOS 4.x has no /proc, and ptrace() peeking the u area won't give us the
28    * process memory segment sizes. Instead we must grope process information
29    * from kernel virtual memory. This requires super-user privilege.