From 7758b462f92e4cfafd4e26d6ea392428aaf57af2 Mon Sep 17 00:00:00 2001 From: Alexander von Gernler Date: Wed, 19 Jul 2006 18:38:43 +0000 Subject: make kernels w/o PTRACE compile again. help from mickey@, "commit it" miod@ --- sys/conf/files | 4 ++-- 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 +#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. -- cgit v1.2.3