diff options
author | Alexander von Gernler <grunk@cvs.openbsd.org> | 2006-07-19 18:38:43 +0000 |
---|---|---|
committer | Alexander von Gernler <grunk@cvs.openbsd.org> | 2006-07-19 18:38:43 +0000 |
commit | 7758b462f92e4cfafd4e26d6ea392428aaf57af2 (patch) | |
tree | d6c22003ebe7a448bf837adddb8a96a80027c675 | |
parent | 14df8446f65369336dbcb8e6e7069a024b3f3fe5 (diff) |
make kernels w/o PTRACE compile again.
help from mickey@, "commit it" miod@
-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. |