diff --git a/sys/libkern/Makefile b/sys/libkern/Makefile index 2d6bafbb65f0..c910523abff2 100644 --- a/sys/libkern/Makefile +++ b/sys/libkern/Makefile @@ -1,8 +1,8 @@ # @(#)Makefile 7.9 (Berkeley) 6/1/93 -# $Id$ +# $Id: Makefile,v 1.2 1994/08/02 07:43:40 davidg Exp $ LIB= kern -CFLAGS+= -I${.CURDIR} -I${.CURDIR}/.. +CFLAGS+= -I${.CURDIR} -I${.CURDIR}/.. -DKERNEL SRCS= adddi3.c anddi3.c ashldi3.c ashrdi3.c bcmp.c cmpdi2.c divdi3.c \ ffs.c iordi3.c locc.c lshldi3.c lshrdi3.c mcount.c moddi3.c \ muldi3.c negdi2.c notdi2.c qdivrem.c random.c rindex.c scanc.c \ diff --git a/sys/libkern/mcount.c b/sys/libkern/mcount.c index fd8e6a30cd29..f9942e84fe43 100644 --- a/sys/libkern/mcount.c +++ b/sys/libkern/mcount.c @@ -30,11 +30,14 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id$ + * $Id: mcount.c,v 1.2 1994/08/02 07:44:09 davidg Exp $ */ #include #include +#ifdef KERNEL +#include +#endif /* * mcount is called on entry to each function compiled with the profiling @@ -60,6 +63,7 @@ _MCOUNT_DECL(frompc, selfpc) /* _mcount; may be static, inline, etc */ register long toindex; #ifdef KERNEL register int s; + u_long save_eflags; #endif p = &_gmonparam;