From 333fe7b868dcd622b4c3b50afb4c6e833a260df0 Mon Sep 17 00:00:00 2001 From: hiramatu Date: Wed, 17 Oct 2007 22:10:23 +0000 Subject: 2007-10-17 Masami Hiramatsu * autoconf-tsc-khz.c: Not to be compiled if the kernel version is younger than 2.6.23 on i386. --- runtime/autoconf-tsc-khz.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'runtime/autoconf-tsc-khz.c') diff --git a/runtime/autoconf-tsc-khz.c b/runtime/autoconf-tsc-khz.c index 8f6a814c..6c3f453e 100644 --- a/runtime/autoconf-tsc-khz.c +++ b/runtime/autoconf-tsc-khz.c @@ -1,3 +1,7 @@ +#include #include +#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,23)) && defined(__i386__) +#error "tsc_khz is not exported" +#endif unsigned int *ptsc = &tsc_khz; -- cgit