Date: Sat, 20 Oct 2007 21:59:06 GMT From: John Birrell <jb@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 127847 for review Message-ID: <200710202159.l9KLx6aL065884@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=127847 Change 127847 by jb@jb_freebsd1 on 2007/10/20 21:58:23 Avoid including stuff which is very Solaris-specific. Affected files ... .. //depot/projects/dtrace/src/sys/contrib/opensolaris/uts/common/sys/cyclic.h#2 edit Differences ... ==== //depot/projects/dtrace/src/sys/contrib/opensolaris/uts/common/sys/cyclic.h#2 (text) ==== @@ -35,8 +35,17 @@ #ifndef _ASM #include <sys/time.h> +#if defined(sun) #include <sys/cpuvar.h> #include <sys/cpupart.h> +#else +#ifdef _KERNEL +#include <sys/pcpu.h> +typepdef struct pcpu cpu_t; +#else +#define cpu_t void +#endif +#endif #endif /* !_ASM */ #define CY_LOW_LEVEL 0
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200710202159.l9KLx6aL065884>