From 0f930e8154839db1c2292005bd1f166f6d5bfd4c Mon Sep 17 00:00:00 2001 From: Kenjiro Cho Date: Fri, 31 May 2002 09:44:54 +0000 Subject: define ALTQ_NOPCC if i386 and !I586_CPU and !I686_CPU. otherwise, kernel fails to compile. pointed out and ok by fgsch@ --- sys/altq/altq_var.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'sys') diff --git a/sys/altq/altq_var.h b/sys/altq/altq_var.h index b6685a21d32..1668d801bdd 100644 --- a/sys/altq/altq_var.h +++ b/sys/altq/altq_var.h @@ -1,4 +1,4 @@ -/* $OpenBSD: altq_var.h,v 1.4 2002/03/15 01:20:03 millert Exp $ */ +/* $OpenBSD: altq_var.h,v 1.5 2002/05/31 09:44:53 kjc Exp $ */ /* $KAME: altq_var.h,v 1.8 2001/02/09 09:44:41 kjc Exp $ */ /* @@ -111,6 +111,12 @@ extern u_int32_t machclk_freq; extern u_int32_t machclk_per_tick; extern void init_machclk(void); +#if defined(__i386__) && !defined(I586_CPU) && !defined(I686_CPU) +#ifndef ALTQ_NOPCC +#define ALTQ_NOPCC /* TSC is not available, ALTQ_NOPCC needed */ +#endif +#endif + #if defined(__i386__) && !defined(ALTQ_NOPCC) /* for pentium tsc */ #include -- cgit v1.2.3