$NetBSD: patch-aj,v 1.2 1998/11/01 23:22:19 tron Exp $ --- sysdeps/bsd/prockernel.c 1998/10/07 11:54:44 1.1 +++ sysdeps/bsd/prockernel.c 1998/10/07 12:01:57 @@ -31,7 +31,9 @@ #include #include #include +#ifdef __FreeBSD__ #include +#endif #include #include @@ -120,8 +122,10 @@ { /* Same like with pstats above. */ +#ifdef __FreeBSD__ buf->kstk_esp = (u_int64_t) pcb.pcb_ksp; buf->kstk_eip = (u_int64_t) pcb.pcb_pc; +#endif buf->flags |= _glibtop_sysdeps_proc_kernel_pcb; }