diff options
author | 2006-07-19 18:38:42 +0000 | |
---|---|---|
committer | 2006-07-19 18:38:42 +0000 | |
commit | c51e6b7e228454a7d988a6a60e65de61747f418c (patch) | |
tree | 860cd7ba24ff1b5a0a2297e2b2a106404e265405 /sys | |
parent | from FreeBSD: (diff) | |
download | wireguard-openbsd-c51e6b7e228454a7d988a6a60e65de61747f418c.tar.xz wireguard-openbsd-c51e6b7e228454a7d988a6a60e65de61747f418c.zip |
make kernels w/o PTRACE compile again.
help from mickey@, "commit it" miod@
Diffstat (limited to 'sys')
-rw-r--r-- | sys/conf/files | 4 | ||||
-rw-r--r-- | sys/kern/sys_process.c | 4 |
2 files changed, 5 insertions, 3 deletions
diff --git a/sys/conf/files b/sys/conf/files index 9d8e9590c30..fe3e91e50b7 100644 --- a/sys/conf/files +++ b/sys/conf/files @@ -1,4 +1,4 @@ -# $OpenBSD: files,v 1.380 2006/07/18 11:52:12 dlg Exp $ +# $OpenBSD: files,v 1.381 2006/07/19 18:38:42 grunk Exp $ # $NetBSD: files,v 1.87 1996/05/19 17:17:50 jonathan Exp $ # @(#)files.newconf 7.5 (Berkeley) 5/10/93 @@ -641,7 +641,7 @@ file kern/subr_userconf.c boot_config file kern/subr_xxx.c file kern/sys_generic.c file kern/sys_pipe.c -file kern/sys_process.c ptrace +file kern/sys_process.c ptrace | procfs | systrace file kern/sys_socket.c file kern/syscalls.c syscall_debug file kern/sysv_ipc.c sysvshm | sysvsem | sysvmsg diff --git a/sys/kern/sys_process.c b/sys/kern/sys_process.c index 45c1e2f77af..55554087a5a 100644 --- a/sys/kern/sys_process.c +++ b/sys/kern/sys_process.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sys_process.c,v 1.35 2006/05/18 21:27:24 miod Exp $ */ +/* $OpenBSD: sys_process.c,v 1.36 2006/07/19 18:38:42 grunk Exp $ */ /* $NetBSD: sys_process.c,v 1.55 1996/05/15 06:17:47 tls Exp $ */ /*- @@ -67,6 +67,7 @@ #include <machine/reg.h> +#ifdef PTRACE /* * Process debugging system call. */ @@ -547,6 +548,7 @@ sys_ptrace(struct proc *p, void *v, register_t *retval) #endif return 0; } +#endif /* PTRACE */ /* * Check if a process is allowed to fiddle with the memory of another. |